33. try {
34. // some code here
35. } catch (NullPointerException e1) {
36. System.out.print(”a”);
37. } catch (RuntimeException e2) {
38. System.out.print(”b”);
39. } finally {
40. System.out.print(”c”);
41. }
What is the result if a NullPointerException occurs on line
34?
1 c
2 a
3 ab
4 ac
Answer Posted / deepak chawla
1. c
| Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
What modifiers are allowed for methods in an interface?
Define the term string pool?
Why charat is used in java?
How do you add an element to a hashset in java?
what is use of functional interface in java 8?
What is method and methodology?
How is hashcode calculated in java?
What are the benefits of immutable objects?
What is lambda expression in java?
What language is an assembler written in?
Explain implementation and how is it different from conversion?
Is the empty set a singleton?
What are the advantages of autoboxing?
What is difference between filereader and bufferedreader?
What is jvm? Why is java called the platform independent programming language?