java.lang.ArrayIndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
None
None
JDK 1.0 or later
An ArrayIndexOutOfBoundsException is thrown when an out-of-range index is detected by an array object. An out-of-range index occurs when the index is less than zero or greater than or equal to the size of the array.
public class java.lang.ArrayIndexOutOfBoundsException
extends java.lang.IndexOutOfBoundsException {
// Constructors
public ArrayIndexOutOfBoundsException();
public ArrayIndexOutOfBoundsException(int index);
public ArrayIndexOutOfBoundsException(String s);
}
This constructor creates an ArrayIndexOutOfBoundsException with no associated detail message.
The index value that was out-of-bounds
This constructor creates an ArrayIndexOutOfBoundsException with an associated message that mentions the specified index.
The detail message.
This constructor creates an ArrayIndexOutOfBoundsException with the specified detail message.
|
Method |
Inherited From |
Method |
Inherited From |
|---|---|---|---|
|
clone() |
Object |
equals(Object) |
Object |
|
fillInStackTrace() |
Throwable |
finalize() |
Object |
|
getClass() |
Object |
getLocalizedMessage() |
Throwable |
|
getMessage() |
Throwable |
hashCode() |
Object |
|
notify() |
Object |
notifyAll() |
Object |
|
printStackTrace() |
Throwable |
printStackTrace(PrintStream) |
Throwable |
|
printStackTrace(PrintWriter) |
Throwable |
toString() |
Object |
|
wait() |
Object |
wait(long) |
Object |
|
wait(long, int) |
Object |
Exception, IndexOutOfBoundsException, RuntimeException, Throwable