We carved their names on the stone so that younger generations could know what their foref
A.did
B.were doing
C.had done
D.have been doing
A.did
B.were doing
C.had done
D.have been doing
第1题
A.x
B.x=x
C.“x=”+5
D.编译报错
第2题
A.NULL
B.Compilationfails.
C.Thecoderunswithnooutput.
D.Anexceptionisthrownatruntime.
第3题
A.null
B.-1
C.编译时出错
D.运行时报错
第4题
下列代码的执行结果是 ()public class Test{ public static void main(String args[]){ float t=0h int q=5; System.out.println((t++)*(--q)); } }
A.41
B.41
C.36
D.36
第5题
A.true
B.false
C.Compilationfails.
D.Anexceptionisthrownatruntime.
第6题
A.正确运行,输出:B
B.正确运行,输出:A
C.运行时引发异常
D.编译时发生错误
第7题
A.javatest
B.java-eatest
C.javatestfile1
D.java-eatestfile1
E.java-eatestfile1file2
F.java-ea:testtestfile1
第8题
已知如下代码:publicclassTest{publicstaticvoidmain(Stringarg[]){longa[]=newlong[10];System.out.Println(a[6]);}}下列选项正确的是()。
A.输出为null
B.输出为0
C.编译时出错
D.运行时出错
第9题
A.Compilationfails.
B.Compilationsucceedswitherrors.
C.Compilationsucceedswithwarnings.
D.Compilationsucceedswithoutwarningsorerrors.
第10题
A.0
B.null
C.Compilationfails.
D.ANullPointerExceptionisthrownatruntime.
E.AnArrayIndexOutOfBoundsExceptionisthrownatruntime.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!