A
Q. What is the result of the following code snippet?
try {
throw new NullPointerException();
} catch (ArithmeticException e) {
System.out.println("Arithmetic Exception!");
} catch (NullPointerException e) {
System.out.println("NullPointerException!");
}
- Correct Answer - Option(A)
- Views: 31
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.