Let us first understand what is an ArrayIndexOutOfBounds Exception.
As the name itself suggests the index for the array has gone out of bound (permissible value) and an exception (anamoly) is resulted.
So, it throws an error.
That means if an array, Employee of size n is defined then the permissible elements are Employee[0] to Employee[n-1]. If any negative index or with the index is greater than n-1 is tried to access it throws an error saying ArrayIndexOutOfBounds Exception.
In java, during the compilation of the program the compiler doesn't check for the ArrayIndexOutOfBounds Exception.It checks during running the program.