问题 单项选择题

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

A.ArrayIndexOutOfBoundsException

B.IOException

C.NullPointerException

D.ArithmeticException

答案

参考答案:A

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

单项选择题
填空题