| Mobile | RSS

Unreachable Code Problem

Java Tutorial : Implementing Exception Handling – Part 2

Handling the Unreachable Code Problem The multiple catch blocks generate unreachable code error. If the first catch block contains the Exception class object then the subsequent catch blocks are never executed. The Exception class being the superclass of all the exception classes catches various types of exceptions. The Java compiler gives an error stating that [...]

[ More ] 18th Oct, 2009 | No Comment | Posted in Java