A
Q. 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 - Option(D)
- Views: 14
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.