(C20) ______
A.ability
B.advantage
C.benefit
D.interest
A.ability
B.advantage
C.benefit
D.interest
第1题
执行下列程序时,会产生什么异常 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.ArraylndexOutOfBoundsException
B.NumberFormatException
C.ArithmeticExCeption
D.EOFException
第2题
执行下列程序时,会产生什么异常 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.ArrayIndexOutOfBoundsException
B.NumberFormatException
C.ArithmetieException
D.EOFException
第3题
执行下列程序时,会产生什么异常 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.ArrayIndexOutOfBoundsException
B.NumberFormatException
C.ArithmeticException
D.EOFException
第4题
执行下列程序时,会产生什么异常()。 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.ArraylndexOutOfBoundsException
B.NumberFormatException
C.ArithmeticException
D.EOFExeeption
第5题
执行下列程序时,会产生什么异常()。 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.ArraylndexOutOfBoundsException
B.NumberFormatException
C.ArithmeticException
D.EOFExeeption
第6题
运行下面的程序时,会产生()。 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异常
第7题
运行下面的程序时,会产生()。 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异常
第8题
在执行下面这段Java程序时: public class Test { public static void main (String[] args) { String s1=args[0]; String s2=args[1]; String s3=args[2]; } }若编译程序后键入命令: java Test one two three,那么变量s1所引用的字符串为()。
A.null
B.test
C.one
D.java
第9题
下列代码的执行结果是()。 public class Test { public static void main(String args[]) { System.out.println(7/2); } }
A.3.5
B.3
C.3.0
D.3.50
第10题
A.ArithmeticException
B.ArrayIndexOutOfBoundsException
C.NumberFormatException
D.IOException
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!