您的位置:首页 > 其它

ArrayIndexOutOfBoundsException

2015-09-28 15:04 267 查看
public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException
用非法索引访问数组时抛出的异常。如果索引为负或大于等于数组大小,则该索引为非法索引。 

[code]构造方法:
public ArrayIndexOutOfBoundsException()
构造不带详细消息的
ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException(int index)
构造具有指示非法索引的参数的新
ArrayIndexOutOfBoundsException
类。
参数:
index
- 非法索引。
public ArrayIndexOutOfBoundsException(String s)
构造具有指定详细消息的
ArrayIndexOutOfBoundsException
类。
参数:
s
- 详细消息。
[/code]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: