模块 java.base
 java.lang

类 ArrayIndexOutOfBoundsException

所有已实现的接口:
Serializable

public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException
抛出以指示已使用非法索引访问数组。索引为负数或大于或等于数组的大小。
自从:
1.0
参见:
  • 构造方法详细信息

    • ArrayIndexOutOfBoundsException

      public ArrayIndexOutOfBoundsException()
      构造一个没有详细信息的 ArrayIndexOutOfBoundsException
    • ArrayIndexOutOfBoundsException

      public ArrayIndexOutOfBoundsException(String  s)
      使用指定的详细消息构造一个 ArrayIndexOutOfBoundsException 类。
      参数:
      s - 详细消息。
    • ArrayIndexOutOfBoundsException

      public ArrayIndexOutOfBoundsException(int index)
      使用指示非法索引的参数构造一个新的 ArrayIndexOutOfBoundsException 类。

      该索引包含在此异常的详细消息中。详细消息的确切表示格式未指定。

      参数:
      index - 非法索引。