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


Please Help Members By Posting Answers For Below Questions

What is the use of java?

532


What are the different types of inheritance in java?

539


What is java argument list?

526


Differentiate between the constructors and methods in java?

513


What are the Static and Dynamic Variables? Differentiate them.

615






What is the equal sign?

572


How java enabled high performance?

595


Can I uninstall java?

561


What is data object example?

544


What is singleton class in java and how can we make a class singleton?

582


What is the difference between access specifiers and access modifiers in java? 16

548


What is flag in python?

561


Is ++ operator is thread safe in java?

525


What is a method in coding?

579


Name few "optional" classes introduced with java 8 ?

659