java.lang
Class ArrayIndexOutOfBoundsException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--java.lang.IndexOutOfBoundsException
|
+--java.lang.ArrayIndexOutOfBoundsException
Thrown when attempting to access a position outside the valid range of
an array. For example:
int[] i = { 1 };
i[1] = 2;
Authors:- Brian Jones
- Warren Levy <warrenl@cygnus.com>
ArrayIndexOutOfBoundsException
public ArrayIndexOutOfBoundsException()
Create an exception without a message.
ArrayIndexOutOfBoundsException
public ArrayIndexOutOfBoundsException(int index)
Create an exception indicating the illegal index.
Parameters:
ArrayIndexOutOfBoundsException
public ArrayIndexOutOfBoundsException(java.lang.String s)
Create an exception with a message.
Parameters: