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
What about main() method in java ?
What is the main function in java?
What are the basic concepts of OOPS in java?
How will you invoke any external process in java?
Is ++ operator thread-safe in java?
who can i handle multiple client in RMI
Explain the difference between transient and volatile in java?
What is the maximum size of list in java?
How do you check if a character in a string is a digit or letter?
What is tcp ip in java?
What is jdbc api?
What is a class reference?
Why do people says “java is robust”?
What a static class can contains?
What is java used for?