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