0% completed
public class Solution {
public static void main(String[] args) {
try {
int[] arr = new int[3];
arr[5] = 10;
} catch (ArrayIndexOutOfBoundsException e) {
System.out.println("Array index out of bounds!");
} finally {
System.out.println("Finally block executed.");
}
}
}
.....
.....
.....