Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

what is unreachable catch block error?

try {
   // statements
} catch(Exception e) {
   System.out.println(e);
} catch(NumberFormatException nfe) { //unreachable block. Not supported by Java, leads to an error.
   System.out.println(nfe);
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #unreachable #catch #block
ADD COMMENT
Topic
Name
6+8 =