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

admin2010-12-17  24

问题 下列常见的系统定义的异常中,哪个是数组越界异常?

选项 A、ArrayIndexOutOfBoundsException
B、IOException
C、NullPointerException
D、ArithmeticException

答案A

解析 ArrayIndexOutOfBoundsException 为数组越界使用异常;IOException为输入输出错误;NullPointerException为引用为空异常;ArithmeticException为算术异常,如除数为0。
转载请注明原文地址:https://kaotiyun.com/show/nl9p777K
0

最新回复(0)