Exception Handling

© examsiri.com
Question : 10 of 24
 
Marks: +1, -0
Given:
1. try {
2.   /*some code here*/
4. } catch (NullPointerException e1) {
5.   System.out.print("a");
6. } catch (RuntimeException e2) {
7.   System.out.print("b");
8. } finally {
9.   System.out.print("c");
10. }

What is the result if a NullPointerException occurs on line 2?
Go to Question: