Answers for "what is unreachable catch block error?"

0

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);
}
Posted by: Guest on May-11-2021

Browse Popular Code Answers by Language