Exception: java.lang.ArrayIndexOutOfBoundsException
- public exception ArrayIndexOutOfBoundsException
- extends IndexOutOfBoundsException
Thrown to indicate that an array has been accessed with an
illegal index. The index is either negative or greater than or
equal to the size of the array.
Inheritance
Superclass tree:- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- java.lang.IndexOutOfBoundsException
- java.lang.ArrayIndexOutOfBoundsException
Methods
-
ArrayIndexOutOfBoundsExceptiontop
public ArrayIndexOutOfBoundsException()Constructs anArrayIndexOutOfBoundsExceptionwith no detail message. -
ArrayIndexOutOfBoundsExceptiontop
public ArrayIndexOutOfBoundsException(int index)Constructs a newArrayIndexOutOfBoundsExceptionclass with an argument indicating the illegal index. -
ArrayIndexOutOfBoundsExceptiontop
public ArrayIndexOutOfBoundsException(String s)Constructs anArrayIndexOutOfBoundsExceptionclass with the specified detail message.
