One aspect of "the universality of toys" lies in the fact that________.
A.technological advances have greatly improved the durability of toys
B.the improvement of craftsmanship in making toys depends on the efforts of universities
C.the exploration of the universe has led to the creation of new kinds of toys
D.the basic characteristics of toys are the same the world over
第1题
A.inpre
B.prein
C.inprepost
D.preinpost
第2题
A.Adone
B.Bdone
C.AdoneBdone
D.BdoneAdone
E.Thereisnoexceptionthattheapplicationwillprintanything.
F.Theapplicationoutputs“Adone”and“Bdone”,innoguaranteedorder.
第3题
publicclassTestimplementsRunnable{
publicstaticvoidmain(Stringargs[]){
Testt=newTest();
Threadtt=newThread(t);
tt.start();
}
publicvoidrun(){
for(;;){
try{
}catchL______e){}
System.out.println("Hello");
}
}
}
A.
B.
C.
D.
第4题
A.publicclassXimplementsRunable{publicvoidrun(){}}
B.publicclassXimplementsThread{publicvoidrun(){}}
C.publicclassXimplementsThread{publicintrun(){}}
D.publicclassXimplementsThread{publicvoidrun(){}}
第5题
publicclassTwoThreads{
privatestaticObjectresource=newObject();
privatestaticvoiddelay(longn){
try{Thread.sleep(n);}
catch(Exceptione){System.out.print(”Error);}
}
publicstaticvoidmain(String[]args){
System.out.print(”StartMain);
newThread1().start();
delay(1000);
Threadt2=newThread2();
t2.start();
delay(1000);
t2.interrupt
delay(1000);
System.out.print(”EndMain);
}
staticclassThread1extendsThread{
publicvoidrun(){
synchronized(resource){
System.out.print(”Startl);
delay(6000);
System.out.print(”End1);
}
}
}
staticclassThread2extendsThread{
publicvoidrun(){
synchronized(resource){
System.out.print(”Start2);
delay(2000);
System.out.print(”End2);
}
}
}
}
Assumethatsleep(n)executesinexactlymmilliseconds,andallothercodeexecutesinaninsignificantamountoftime.Whatistheoutputifthemain()methodisrun?()
第6题
A.afterjoin
B.afterstart
C.afterjoinafterstart
D.afterstartafterjoin
第7题
:A.sleep(1000)InterruptedException
B.t.sleep(1000)InterruptedException
C.Thread.sleep(1000)RuntimeException
D.Thread.sleep(1000)InterruptedException
第8题
A.voidrun()
B.publicvoidrun()
C.publicvoidstart()
D.voidrun(intpriority)
E.publicvoidrun(intpriority)
F.publicvoidstart(intpriority)
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!