R
Q. What is the result of the following code snippet?
try {
int[] arr = new int[5];
int value = arr[10];
} catch (ArrayIndexOutOfBoundsException e) {
System.out.println("Exception Caught!");
} finally {
System.out.println("Finally Block!");
}
- Correct Answer - Option(D)
- Views: 63
- Filed under category JAVA
Discusssion
Login to discuss.