πŸ“Š JAVA
Q. What is the result of the following code snippet?

try {
int result = 10 / 0;
} catch (ArithmeticException e) {
System.out.println("Arithmetic Exception!");
} finally {
System.out.println("Finally Block!");
}
  • (A) No output
  • (B) Finally Block!
  • (C) Arithmetic Exception!
  • (D) Arithmetic Exception! Finally Block!
πŸ’¬ Discuss
βœ… Correct Answer: (D) Arithmetic Exception! Finally Block!

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
107
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vinay
Publisher
πŸ“ˆ
94%
Success Rate