This exception is thrown in java when the index is higher than the size of the array. Ex:
int[] arr = {1, 2, 3, 4, 5};
int x = arr[6];
The above example will throw ArrayIndexOutOfBoundsException, because the array contains only 5 integer elements and the index is 6.