40.请写出程序的运行结果。 public class Exec { public static void main(Stri
2023-12-01Java
40.请写出程序的运行结果。 public class Exec { public static void main(String args[]) { try { int x[] = new int[-1]; int j = 0 / 0; } catch (NegativeArraySizeException e) { System.out.println("NegativeArraySizeException"); } catch (ArithmeticException e) { System.out.println("ArithmeticException"); } finally { System.out.println("End!"); } System.exit(0); } } NegativeArraySizeException End!
在修改试题中阅读
