public class ArrayIndexOutOfBoundsException
extends IndexOutOfBoundsException
| java.lang.Object | |||||
| java.lang.Throwable | |||||
| java.lang.Exception | |||||
| java.lang.RuntimeException | |||||
| java.lang.IndexOutOfBoundsException | |||||
| java.lang.ArrayIndexOutOfBoundsException | |||||
抛出以指示已使用非法索引访问数组。 索引或者是负数,或者大于或等于数组的大小。
Public constructors |
|
|---|---|
ArrayIndexOutOfBoundsException() 构造一个没有详细信息的 |
|
ArrayIndexOutOfBoundsException(int index) 使用指示非法索引的参数构造一个新的 |
|
ArrayIndexOutOfBoundsException(String s) 用指定的详细信息构造一个 |
|
继承方法(Inherited methods) |
|
|---|---|
java.lang.Throwable
|
|
java.lang.Object
|
|
ArrayIndexOutOfBoundsException ()
构造一个没有详细信息的 ArrayIndexOutOfBoundsException 。
ArrayIndexOutOfBoundsException (int index)
使用指示非法索引的参数构造一个新的 ArrayIndexOutOfBoundsException类。
| 参数(Parameters) | |
|---|---|
index |
int: the illegal index. |
ArrayIndexOutOfBoundsException (String s)
用指定的详细信息构造一个 ArrayIndexOutOfBoundsException类。
| 参数(Parameters) | |
|---|---|
s |
String: the detail message. |