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


Please Help Members By Posting Answers For Below Questions

Why string is not a wrapper class?

648


What is a treeset class?

562


Explain the difference between jdk, jre, and jvm?

598


How long will it take to learn java?

513


Does java trim remove newline?

544






What is compareto?

548


What is the arraylist in java?

538


Why constructor has no return type?

642


What is dot operator?

576


What do you mean by local variable and instance variable?

522


What is a numeric format?

574


What is update method called?

669


What is the difference between error and an exception?

571


How many return statement are allowed in a function?

465


Why java is said to be pass-by-value ?

555