这个程序的输出是什么?( )
class exception_handling {
public static void main(String args[]) {
try {
throw new NullPointerException("Hello");
} catch(ArithmeticException e) {
System.out.print("B");
}
}
}Hello
B
编译错误
运行时错误
NullPointerException未捕获,所以运行时抛出异常