Java | Exception Handling | Question 8
(A) Compile error
(B) Divide by zero error
a = 0 Divide by zero error inside the finally block
(D) a = 0
(E) inside the finally block
Explanation: On division of 20 by 0, divide by zero exception occurs and control goes inside the catch block.
Also, the finally block is always executed whether an exception occurs or not.
Quiz of this Question
My Personal Notes arrow_drop_up
Please Login to comment...