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
Can we overload destructor in java?
What are multiple inheritances? Is it supported by java?
What is the difference between Array and Hash Table?
Can we assign the reference to this variable?
Write an algorithm for quick sort?
Which data type is a class in java?
Explain about the interpreter in java?
What is final keyword in java? Give an example.
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
How do you compare objects in java?
What are the steps in the jdbc connection?
What are the differences between processes and threads?
What does the append?
why Java does not support multiple inheritances?
How many bytes is a url?