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 is difference in between java class and bean?
What is length in java?
How to handle a web browser resize operation?
What defines function?
Outline the major features of java.
Where import statement is used in a java program?
What's the purpose of static methods and static variables?
What is a blocking method in Java?
Is zero a natural number?
If a method is declared as protected, where may the method be accessed in java programming?
What is a class reference?
What is unsigned char?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
Can we assign integer value to char in java?