万能百科  > 计算机   > 

[单项选择题] 下列常见的系统定义的异常中,哪个是数组越界异常A)ArrayIndexOutOfBoundsExceptionB.IOExceptionC.Nu

2021-07-20   

[单项选择题] 下列常见的系统定义的异常中,哪个是数组越界异常

A)ArrayIndexOutOfBoundsExceptionB.IOExceptionC.NullPointerExceptionD.ArithmeticException

A.ArrayIndexOutOfBoundsException

B.IOException

C.NullPointerException

D.ArithmeticException

正确答案:

A

参考解析:

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

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签