W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
java.lang.Object
|---java.lang.Throwable
|---|---java.lang.Exception
|---|---|---java.lang.RuntimeException
|---|---|---|---java.lang.IndexOutOfBoundsException
|---|---|---|---|---java.lang.ArrayIndexOutOfBoundsException
public class ArrayIndexOutOfBoundsException
extends IndexOutOfBoundsException
拋出以指示已使用非法索引訪問數(shù)組。 索引為負(fù)數(shù)或大于或等于數(shù)組的大小。
構(gòu)造函數(shù) | 描述 |
---|---|
ArrayIndexOutOfBoundsException() | 構(gòu)造一個沒有詳細(xì)消息的 ArrayIndexOutOfBoundsException。 |
ArrayIndexOutOfBoundsException(int index) | 使用指示非法索引的參數(shù)構(gòu)造一個新的 ArrayIndexOutOfBoundsException 類。 |
ArrayIndexOutOfBoundsException(String s) | 構(gòu)造具有指定詳細(xì)消息的 ArrayIndexOutOfBoundsException 類。 |
從類 java.lang.Object 繼承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
從類 java.lang.Throwable 繼承的方法 |
---|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
public ArrayIndexOutOfBoundsException()
構(gòu)造一個沒有詳細(xì)消息的 ArrayIndexOutOfBoundsException。
public ArrayIndexOutOfBoundsException(int index)
使用指示非法索引的參數(shù)構(gòu)造一個新的 ArrayIndexOutOfBoundsException 類。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
index | 非法索引。 |
public ArrayIndexOutOfBoundsException(String s)
構(gòu)造具有指定詳細(xì)消息的 ArrayIndexOutOfBoundsException 類。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
s | 詳細(xì)信息。 |
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: