Q. What is the result of the following code snippet?
try {
int[] arr = new int[5];
int value = arr[2];
} catch (NullPointerException e) {
System.out.println("NullPointerException!");
} finally {
System.out.println("Finally Block!");
}
β
Correct Answer: (D)
Finally Block!