• 2022-06-11 问题

    运行下面程序时,会产生什么异常?( )public class sdw{ public static void main(String[] args) {int x = 0;int y = 5/x;int[] z = {1,2,3,4};int p = z[3];}} A: ArithmeticException B: NumberFormatException C: ArrayIndexOutOfBoundsException D: IOException

    运行下面程序时,会产生什么异常?( )public class sdw{ public static void main(String[] args) {int x = 0;int y = 5/x;int[] z = {1,2,3,4};int p = z[3];}} A: ArithmeticException B: NumberFormatException C: ArrayIndexOutOfBoundsException D: IOException

  • 1