问题 单项选择题

下列常见的系统定义中的异常中,______是数组越界异常。
A. ArrayIndexOutOfBoundsException
B. NullPointerException
C. IOException
D. ArithmeticException

答案

参考答案:A

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

选择题
多项选择题