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