APIdia Launch Partner
Top Description Fields Constructors
java.lang

public Class ArrayIndexOutOfBoundsException

extends IndexOutOfBoundsException
Class Inheritance

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.
Since
1.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ArrayIndexOutOfBoundsException()

Constructs an ArrayIndexOutOfBoundsException with no detail message.

public
ArrayIndexOutOfBoundsException(String
the detail message.
s
)

Constructs an ArrayIndexOutOfBoundsException class with the specified detail message.

public
ArrayIndexOutOfBoundsException(int
the illegal index.
index
)

Constructs a new ArrayIndexOutOfBoundsException class with an argument indicating the illegal index.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.IndexOutOfBoundsException.serialVersionUID.

Annotations
@Serial

Constructor Detail

ArrayIndexOutOfBoundsExceptionback to summary
public ArrayIndexOutOfBoundsException()

Constructs an ArrayIndexOutOfBoundsException with no detail message.

ArrayIndexOutOfBoundsExceptionback to summary
public ArrayIndexOutOfBoundsException(String s)

Constructs an ArrayIndexOutOfBoundsException class with the specified detail message.

Parameters
s:String

the detail message.

ArrayIndexOutOfBoundsExceptionback to summary
public ArrayIndexOutOfBoundsException(int index)

Constructs a new ArrayIndexOutOfBoundsException class with an argument indicating the illegal index.

The index is included in this exception's detail message. The exact presentation format of the detail message is unspecified.

Parameters
index:int

the illegal index.