πŸ“Š JAVA
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!");
}
  • (A) Arithmetic Exception!
  • (B) Compilation error
  • (C) Runtime exception
  • (D) ArithmeticException
πŸ’¬ Discuss
βœ… Correct Answer: (B) Compilation error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
66
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Pooja
Publisher
πŸ“ˆ
99%
Success Rate