Monday 11 March 2013

java.lang ArrayIndexOutOfBoundsException


java.lang
ArrayIndexOutOfBoundsException

Declaration
public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--java.lang.IndexOutOfBoundsException
|
+--java.lang.ArrayIndexOutOfBoundsException
Description
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: JDK1.0, CLDC 1.0


Constructors
ArrayIndexOutOfBoundsException()
ArrayIndexOutOfBoundsException(int index)
ArrayIndexOutOfBoundsException(String s)


Methods inherited from class Object
equals(Object), getClass(), hashCode(), notify(), notifyAll(), wait(), wait(), wait()
Methods inherited from class Throwable
getMessage(), printStackTrace(), toString()


Constructors
ArrayIndexOutOfBoundsException()
Declaration:
public ArrayIndexOutOfBoundsException()
Description:
Constructs an ArrayIndexOutOfBoundsException with no detail message.
ArrayIndexOutOfBoundsException(int)
Declaration:
public ArrayIndexOutOfBoundsException(int index)
Description:
Constructs a new ArrayIndexOutOfBoundsException class with an argument indicating the illegal
index.
Parameters:
index - the illegal index.
ArrayIndexOutOfBoundsException(String)
Declaration:
public ArrayIndexOutOfBoundsException(java.lang.String s)
Description:
Constructs an ArrayIndexOutOfBoundsException class with the specified detail message.
Parameters:
s - the detail message.






No comments:

Post a Comment