Java in a Nutshell

Previous Chapter 25
The java.lang Package
Next
 

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()


Previous Home Next
java.lang.ArithmeticException (JDK 1.0) Book Index java.lang.ArrayStoreException (JDK 1.0)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java
This HTML Help has been published using the chm2web software.