A.公共交通的发展对中国百姓生活的冲击
B.中国百姓的思想受到汽车业发展带来的不同程度的影响
C.中国政府鼓励汽车业发展的政策影响巨大
D.汽车业发展对中国百姓生活的影响
第1题
A.baz=
B.baz=null
C.baz=blue
D.Compilationfails.
E.Anexceptionisthrownatruntime.
第2题
A.0
B.null
C.Compilationfails.
D.ANullPointerExceptionisthrownatruntime.
E.AnArrayIndexOutOfBoundsExceptionisthrownatruntime.
第3题
A.floatf=1F;
B.floatf=1.0.;
C.floatf=‘1’;
D.floatf=“1”;
E.floatf=1.0d;
第4题
A.Nostatementisrequired.
B.importjave.io.*;
C.includejava.io.*;
D.importjave.io.PrintWriter;
E.includejava.io.PrintWriter;
第5题
A.for(inti=0;i<a.size();i++) System.out.println(a.get(i)));
B.for(inti=0;i<a.size();i++) System.out.println(a[i]);
C.while(iter.hasNext()) System.out.println(iter.next());
D.for(inti=0,i<a.size();i++) System.out.println(iter[i]);
E.for(inti=0;i<a.size();i++) System.out.println(iter.get(i));
第6题
A.Exitingfromasynchronizedblock.
B.Callingthewaitmethodonanobject.
C.Callingthenotifymethodonanobject.
D.CallingthenotifyAllmethodonanobject.
第7题
A.Adone
B.Bdone
C.AdoneBdone
D.BdoneAdone
E.Thereisnoexceptionthattheapplicationwillprintanything.
F.Theapplicationoutputs“Adone”and“Bdone”,innoguaranteedorder.
第8题
A.Compilationfails.
B.Theprogramprintspairsofvaluesforxandythatmightnotalwaysbethesameonthesameline(forexample,“x=2,y=1”).
C.Theprogramprintspairsofvaluesforxandythatarealwaysthesameonthesameline(forexample,“x=1,y=1”). Inaddition,eachvalueappearsonlyonce(forexample,“x=1,y=1”followedby“x=2,y=2”). Thethreadnameatthestartofthelineshowsthatboththreadsareexecutingconcurrently.
D.Theprogramprintspairsofvaluesforxandythatarealwaysthesameonthesameline(forexample,“x=1,y=1”). Inaddition,eachvalueappearsonlyonce(forexample,“x=1,y=1”followedby“x=2,y=2”). Thethreadnameatthestartofthelineshowsthatonlyasinglethreadisactuallyexecuting.
第9题
A.AAA
B.BBB
C.Compilationfails.
D.Thecoderunswithnooutput.
第10题
A.Compilationfails.
B.Anexceptionisthrown.
C.Thewait()methodhasnoeffect.
D.ThreadXreceivesthelockimmediately.
E.ObjectAmovesthethreadtothewaitpool.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!