下列程序的输出结果为( ) public class Base { pub...
发布于 2022-03-03 17:35:30
下列程序的输出结果为( )
public class Base {
public static void main(String[] args) {
int a = 6
int b = 0
try {
System.out.println("start")
a = a / b
System.out.println("try")
}
catch (ArithmeticException e) {
System.out.println("ArithmeticException")
}
catch (Exception e) {
System.out.println("Exception")
}
System.out.println("end")
}
}
public class Base {
public static void main(String[] args) {
int a = 6
int b = 0
try {
System.out.println("start")
a = a / b
System.out.println("try")
}
catch (ArithmeticException e) {
System.out.println("ArithmeticException")
}
catch (Exception e) {
System.out.println("Exception")
}
System.out.println("end")
}
}
登录后免费查看答案
关注者
0
被浏览
15