Java - Exception Handling
Find the error in this code snippet:
try {
int[] arr = new int[3];
arr[5] = 10;
} catch (ArrayIndexOutOfBoundsException e) {
System.out.println("Index error");
}