执行下列程序时,会产生什么异常( )。 publicclassTest{ publicstaticvoidmain(Stringargs[]){ intd=101; intb=220; longa=321; System.out.println((a-b)/(a-b-d)); } }A.ArraylndexOutOfBoundsExceptionB.NumberFormatExceptionC.AriUiinedcExcepdOnD.EOFExCtion

执行下列程序时,会产生什么异常( )。 publicclassTest{ publicstaticvoidmain(Stringargs[]){ intd=101; intb=220; longa=321; System.out.println((a-b)/(a-b-d)); } }

A.ArraylndexOutOfBoundsException

B.NumberFormatException

C.AriUiinedcExcepdOn

D.EOFExCtion


相关考题:

下列代码的执行结果为( )。 public class Test1 { public static void main(String args[]){ hat a=3,b=10; System.out.println((a++)*(--b)); }A.40B.36C.30D.27

运行下面的程序时,会产生( )。 public class Test{ public static void main(String args[ ] ) { int x =0; int y = 2/x; int z[ ] = {1,2,4,6}; int p=z[4]; } }A.ArrayIndexOutOfBoundsExcePtion异常B.NumberFormatException异常C.ArithmeticException异常D.ArithmeticException异常和ArrayIndexOutOfBoundsExcePtion异常

执行下列程序时,会产生( )异常。 public class Test{ public static void main(String args[ ]){ int d=101; int b=220; long a=321; System.out.println((a-b)/(a-b-d)); } }A.ArraylndexOutOfBoundsExceptionB.NumberFormatExceptionC.ArithmeticExceptionD.EOFExcepfion

执行下列程序时,会产生什么异常 public class Test{ public static void main(String args[]){ int d=101; int b=220; long a=321; System.out.println((a-B)/(a-b-D)); } }A.ArrayIndexOutOfBoundsExceptionB.NumberFormatExceptionC.ArithmeticExceptionD.EOFException

执行下列程序时,会产生什么异常 public class Test{ public static void main(String args[]{ int d=101; int b=220; long a=321; System.out.println((a-b) /(a-b-d) ); } }A.ArraylndexOutOfBoundsExceptionB.NumberFormatExceptionC.ArithmeticExCeptionD.EOFException

执行下列程序时,会产生什么异常( )。A.ArrayIndexOutOfBoundsExceptionB.NumberFormatExceptionC.ArithmeticExceptionD.EOFException

执行下列程序时,会产生什么异常 public class Test { public static void main(String args[ ])( int d=101; int b=220; long a=321; System.out.println((a-B) /(a-b-D) ); } }A.ArrayIndexOutOfBoundsExceptionB.NumberFormatExceptionC.ArithmetieExceptionD.EOFException

执行下列程序时,会产生什么异常( )。 public class Test{ public static void main(String args[]){ int d=101; int b=220: long a=321; System.OUt.println((a-b)/(a-b-d)); } }A.ArraylndexOutOfBoundsExceptionB.NumberFormatExceptionC.ArithmeticExceptionD.EOFExeeption

执行下列代码后输出结果为:public class test {public static void main(String args[]) {int a=2;int b=3;int c=7;int d=a>c?a:c;d=d>>2>b? d:b;System.out.println(b);}} A.2B.3C.5D.7