Most visited

Recently visited

Added in API level 1

ArrayIndexOutOfBoundsException

public class ArrayIndexOutOfBoundsException
extends IndexOutOfBoundsException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.IndexOutOfBoundsException
           ↳ java.lang.ArrayIndexOutOfBoundsException


抛出以指示已使用非法索引访问数组。 索引或者是负数,或者大于或等于数组的大小。

Summary

Public constructors

ArrayIndexOutOfBoundsException()

构造一个没有详细信息的 ArrayIndexOutOfBoundsException 。

ArrayIndexOutOfBoundsException(int index)

使用指示非法索引的参数构造一个新的 ArrayIndexOutOfBoundsException类。

ArrayIndexOutOfBoundsException(String s)

用指定的详细信息构造一个 ArrayIndexOutOfBoundsException类。

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

ArrayIndexOutOfBoundsException

Added in API level 1
ArrayIndexOutOfBoundsException ()

构造一个没有详细信息的 ArrayIndexOutOfBoundsException 。

ArrayIndexOutOfBoundsException

Added in API level 1
ArrayIndexOutOfBoundsException (int index)

使用指示非法索引的参数构造一个新的 ArrayIndexOutOfBoundsException类。

Parameters
index int: the illegal index.

ArrayIndexOutOfBoundsException

Added in API level 1
ArrayIndexOutOfBoundsException (String s)

用指定的详细信息构造一个 ArrayIndexOutOfBoundsException类。

Parameters
s String: the detail message.

Hooray!