Java | Exception Handling | Question 3
Output of following Java program?
(A) Compiler Error
(B) Compiles and runs fine
(C) Compiles fine but throws ArithmeticException exception
Explanation: ArithmeticException is an unchecked exception, i.e., not checked by the compiler. So the program compiles fine. See following for more details.
Checked vs Unchecked Exceptions in Java
Quiz of this Question
My Personal Notes arrow_drop_up
Please Login to comment...