A-A+

下列常见的系统定义的异常中 哪个是数组越界异常?A.ArrayIndexOutOfBound

2022-08-05 22:50:15 问答库 阅读 173 次

问题详情

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

参考答案

正确答案:A
解析:ArrayIndexOutOfBoundsException 为数组越界使用异常;IOException为输入输出错误;NullPointerException为引用为空异常;ArithmeticException为算术异常,如除数为0。

考点:数组,定义