Java unreachable catch block compiler error
A RuntimeException could be thrown by any code. In other words, the compiler can’t easily predict what kind of code can throw it. A RuntimeException can be caught by a catch(Exception e) block. IOException, however, is a checked exception – only method calls which are declared to throw it can do so. The compiler can … Read more