Skip to content

Glossary: Java Basics

ArrayIndexOutOfBoundsException

Also written: IndexOutOfBoundsException

The exception thrown when you ask an array (or list) for an index that doesn't exist, such as index 7 in a 7-element array. The last valid index is `length - 1`.

Where the book teaches it

Related terms

ArrayIndexException