下列程序的执行 说法错误的是:()。 public class MultiCatch { public static void main(String a
已帮助 人
下列程序的执行,说法错误的是:()。 public class MultiCatch { public static void main(String args[]) { try { int a=args.length; int b=42/a; int c[]={1}; c[42]=99; //第10行 System.out.println(“b=”+b); } catch(ArithmeticException e) { System.out.println(“除0异常:”+e); //第15行 } catch(ArrayIndexOutOfBoundsException e) { System.out.println(“数组超越边界异常:”+e); //第18行 } } }
A.程序将输出第15行的异常信息
B.程序第10行出错
C.程序将输出 b=42
D.程序将输出第15和18行的异常信息

回答
共1条回复-
程序将输出“b=42”
