public class java.lang
ArrayIndexOutOfBoundsException


Show All Login
Java SE 6
  
Extends: Throwable > Exception > RuntimeException > IndexOutOfBoundsException
Details
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.
version1.22, 11/17/05
sinceJDK1.0

Constructors
public ArrayIndexOutOfBoundsException()
Constructs an ArrayIndexOutOfBoundsException with no detail message.
public ArrayIndexOutOfBoundsException(int index) Details
Constructs a new ArrayIndexOutOfBoundsException class with an argument indicating the illegal index.
indexthe illegal index.
public ArrayIndexOutOfBoundsException(String s) Details
Constructs an ArrayIndexOutOfBoundsException class with the specified detail message.
sthe detail message.