Single Choice
Not Set
QWhat will be the result if NullPointerException occurs at line 2?
1. try{
2. //some code goes here
3. }
4. catch(NullPointerException ne){
5. System.out.print("1 ");
6. }
7. catch(RuntimeException re){
8. System.out.print("2 ");
9. }
10. finally{
11. System.out.print("3");
12. }
ID: #2334
Java Exception MCQ
889 views
Question Info
#2334Q ID
Not SetDifficulty
Java Exception MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
1 3
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic