An array index out-of-bounds exception indicates a bug or a logical error in the code.
In Java, arrays have a fixed size, and their elements are indexed starting from 0
, counting up to the last index that is still smaller
than the size. When trying to access an array outside of this range, an ArrayIndexOutOfBoundsException
will be thrown and the operation
will fail.
What is the potential impact?
Issues of this type interrupt the normal execution of a program, causing it to crash or putting it into an inconsistent state. Therefore, this
issue might impact the availability and reliability of your application, or even result in data loss.
If the computation of an index value is tied to user input data, this issue can potentially even be exploited by attackers to disrupt your
application.