这个程序的输出是什么?( )
class Output {
public static void main(String args[]) {
try {
int a = 0;
int b = 5;
int c = b / a;
System.out.print("Hello");
} catch(Exception e) {
System.out.print("World");
}
}
}Hello
World
HelloWorld
编译错误
发生除0异常,进入catch代码块,输出World。