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 / nandhakumar
4) ac
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is double bigger than float?
Is multiple inheritance supported by java?
What exactly is java?
What is constant in programming?
How do you take thread dump in java?
How many types of flags are there?
What do you mean by platform independence?
Is break statement can be used as labels in java?
What is static synchronization?
Is Constructor possible in abstract class in java ?
How many ways can we create the string object?
What is getclass () getname () in java?
what is thread? What are the high-level thread states? : Java thread
Explain tree set and its features?
Where to store local variables?