当前位置 类层次(JDK) 所有类(JDK) 所有域和方法(JDK)

类 java.lang.ArrayIndexOutOfBoundsException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.lang.RuntimeException
                           |
                           +----java.lang.IndexOutOfBoundsException
                                   |
                                   +----java.lang.ArrayIndexOutOfBoundsException

public class ArrayIndexOutOfBoundsException
extends IndexOutOfBoundsException

表示用非法数组下标访问数组时抛出的异常信息。如果下标为负或大于等于数组尺寸则为非法下标。


构造子索引

ArrayIndexOutOfBoundsException()
不给定详细消息串,直接构造一 ArrayIndexOutOfBoundsException 类。
ArrayIndexOutOfBoundsException(int)
用参数指定的非法下标创建一新的 ArrayIndexOutOfBoundsException 类。
ArrayIndexOutOfBoundsException(String)
根据给定的详细消息串,创建一 ArrayIndexOutOfBoundsException 类。

构造子

ArrayIndexOutOfBoundsException
 public ArrayIndexOutOfBoundsException()
不给定详细消息串,直接构造一 ArrayIndexOutOfBoundsException 类。

ArrayIndexOutOfBoundsException
 public ArrayIndexOutOfBoundsException(int index)
用参数指定的非法下标创建一新的 ArrayIndexOutOfBoundsException 类。

参数:
index - 非法下标。
ArrayIndexOutOfBoundsException
 public ArrayIndexOutOfBoundsException(String s)
根据给定的详细消息串,创建一 ArrayIndexOutOfBoundsException 类。

参数:
s - 详细消息字符串。

当前位置 类层次(JDK) 所有类(JDK) 所有域和方法(JDK)