5 下面程序的运行结果是() public class Demo { public static void main(String[] args) { try

大学网课 已帮助 人

5、下面程序的运行结果是() public class Demo { public static void main(String[] args) { try { System.out.println(10 / 0); } catch (RuntimeException e) { System.out.println("RuntimeException"); } catch (ArithmeticException e) { System.out.println("ArithmeticException"); } } }

A.编译失败

B.编译通过,没有结果输出

C.输出:RuntimeException

D.输出:ArithmeticException

5 下面程序的运行结果是() public class Demo { public static void main(String[] args) { try

热搜:下面程序的功能是输出数组s中最大元素