Prev Next

Java / Arrays

When ArrayIndexOutOfBoundsException occurs?

The ArrayIndexOutOfBoundsException occurs when the program tries to access the index of an array. The exception also occurs when the index is higher than the size of the array or the index is negative.

More Related questions...

Show more question and Answers...


Comments & Discussions