A
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 - Option(D)
- Views: 8
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.