[Chapter 25] 25.3 java.lang.ArrayIndexOutOfBoundsException (JDK 1.0)

#

| Chapter 25 The java.lang Package |

## 25.3 java.lang.ArrayIndexOutOfBoundsException (JDK 1.0)

###

Signals that an array index less than zero or greater than or equal to the array size has been used.

    public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException {
        // Public Constructors
                public ArrayIndexOutOfBoundsException();
                public ArrayIndexOutOfBoundsException(int index);
                public ArrayIndexOutOfBoundsException(String s);
    }

### Hierarchy:

Object->Throwable(Serializable)->Exception->RuntimeException-> IndexOutOfBoundsException->ArrayIndexOutOfBoundsException

### Thrown By:

Array.get(), Array.getBoolean(), Array.getByte(), Array.getChar(), Array.getDouble(), Array.getFloat(), Array.getInt(), Array.getLong(), Array.getShort(), Array.set(), Array.setBoolean(), Array.setByte(), Array.setChar(), Array.setDouble(), Array.setFloat(), Array.setInt(), Array.setLong(), Array.setShort()

java.lang.ArithmeticException (JDK 1.0) |  | java.lang.ArrayStoreException (JDK 1.0)