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
Why string is not a wrapper class?
What is a treeset class?
Explain the difference between jdk, jre, and jvm?
How long will it take to learn java?
Does java trim remove newline?
What is compareto?
What is the arraylist in java?
Why constructor has no return type?
What is dot operator?
What do you mean by local variable and instance variable?
What is a numeric format?
What is update method called?
What is the difference between error and an exception?
How many return statement are allowed in a function?
Why java is said to be pass-by-value ?