A
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!");
}
- Correct Answer - Option(B)
- Views: 16
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.