Question 12
Answer saved
Flag
question
What will be the output of below code snippet?
public class ExceptionDemo {
public static void main(String[] args) {
try {
int result 10 / 0;
System.out.println(result);
} catch (Arithmetic Exception e) {
System.out.println("Arithmetic Exception");
} finally {
System.out.println("Finally Block");
}
}
}
O a. Compilation Error
b. Arithmetic Exception Finally Block
O c. Finally Block
d. Arithmetic Exception
Clear my choice