What will be the result if NullPointerException occurs at line 2?
try{ //some code goes here}catch(NullPointerException ne){ System.out.print("1 ");}catch(RuntimeException re){ System.out.print("2 ");}finally{ System.out.print("3");}

What will be the result if NullPointerException occurs at line 2?

try{ //some code goes here}catch(NullPointerException ne){ System.out.print("1 ");}catch(RuntimeException re){ System.out.print("2 ");}finally{ System.out.print("3");}
Correct Answer 1 3

Related Questions

The marathon route goes 6 km South from the starting point. It then turns West and goes 6 kms, then turns North and goes 6 km, finally it turns left and goes 2 km to reach the end point. Where is the end point with reference to the start point?