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 is the use of java?
What are the different types of inheritance in java?
What is java argument list?
Differentiate between the constructors and methods in java?
What are the Static and Dynamic Variables? Differentiate them.
What is the equal sign?
How java enabled high performance?
Can I uninstall java?
What is data object example?
What is singleton class in java and how can we make a class singleton?
What is the difference between access specifiers and access modifiers in java? 16
What is flag in python?
Is ++ operator is thread safe in java?
What is a method in coding?
Name few "optional" classes introduced with java 8 ?