try catch and finally blocks - Java Quiz Question


In which order will the lines appear in the output of this program? Or does it not compile?


A
finally block is executed
java.lang.ArithmeticException: / by zero
Rest of the code......
B
finally block is executed
java.lang.ArithmeticException: / by zero
C
java.lang.ArithmeticException: / by zero
finally block is executed
Rest of the code......
D
java.lang.ArithmeticException: / by zero
finally block is executed
E
Compilation Error for some other reason