|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
public class ArrayIndexOutOfBoundsException
Thrown when attempting to access a position outside the valid range of
an array. For example:
int[] i = { 1 };
i[1] = 2;
| Constructor Summary | |
|---|---|
ArrayIndexOutOfBoundsException()
Create an exception without a message. |
|
ArrayIndexOutOfBoundsException(int index)
Create an exception indicating the illegal index. |
|
ArrayIndexOutOfBoundsException(String s)
Create an exception with a message. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Throwable |
|---|
getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayIndexOutOfBoundsException()
public ArrayIndexOutOfBoundsException(String s)
s - the messagepublic ArrayIndexOutOfBoundsException(int index)
index - the invalid index
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||