A-A+

下列常见的系统定义的异常中 数组越界异常是()。A.ArrayIndexOutOfBound

2022-08-05 23:33:05 问答库 阅读 173 次

问题详情

下列常见的系统定义的异常中,数组越界异常是()。
A.ArrayIndexOutOfBoundsException
B.IOException
C.NullPointerException
D.ArithmeticException请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:A
解析:在要求访问数组中非法元素时,引发数组索引越界异常ArrayIndexOutOfBoundsException。

考点:数组,定义