下面的程序编译后用以下命令运行:java ExceptionDemo hello,运行的情况是:
A先输出hello,然后发生异常,异常类型是ArithmeticException
B先发生异常,异常类型是IOException
C先输出hello,然后发生异常,异常类型是ArrayIndexOutOfBoundsException
D程序正常输出信息hello
下面的程序编译后用以下命令运行:java ExceptionDemo hello,运行的情况是:
A先输出hello,然后发生异常,异常类型是ArithmeticException
B先发生异常,异常类型是IOException
C先输出hello,然后发生异常,异常类型是ArrayIndexOutOfBoundsException
D程序正常输出信息hello
Copyright © 2020 www.daanwo.com All Rights Reserved |