A
Q. What is the result of the following code snippet?
try {
int num = 10 / 0;
} catch (ArithmeticException e) {
System.out.println("Arithmetic Exception!");
} catch (Exception e) {
System.out.println("Exception!");
}
- Correct Answer - Option(D)
- Views: 13
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.