网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
The car won't start because the battery has______-_.
A. run down
B. run over
C. run out
D. run off
参考答案
更多 “ The car won't start because the battery has______-_.A. run downB. run overC. run outD. run off ” 相关考题
考题
t是一个合法的Thread对象的引用,并且t的合法run()方法如下:publicvoidrun(){System.out.print(go);}及:t.start();t.start();t.run();哪一个是结果?()
A.goB.gogoC.gogogoD.go之后跟着一个异常
考题
现有:t是一个合法的Thread对象的引用,并且t的合法run()方法如下:publicvoidrun(){System.out.print(go);}及:t.start();t.start();t.run();哪一个是结果?()
A.gogoB.gogogoC.go之后跟着一个异常D.gogo之后跟着一个异常
考题
publicclassThreads2implementsRunnable{publicvoidnun(){System.out.println(”run.”);thrownewRuntimeException(”Problem”);}publicstaticvoidmain(String[]args){Threadt=newThread(newThreads2());t.start();System.out.println(”Endofmethod.”);}}Whichtwocanberesults?()A.java.lang.RuntimeException:ProblemB.run. java.lang.RuntimeException:ProblemC.Endofmethod. java.lang.RuntimeException:ProblemD.Endofmethod. run.java.lang.RuntimeException:ProblemE.run. java.lang.RuntimeException:ProblemEndofmethod.
考题
publicclassThreads3implementsRunnable{publicvoidrun(){System.out.print(”running”);}publicstaticvoidmain(String[]args){Threadt=newThread(newThreads3());t.run();t.run();t.start();}}Whatistheresult?()
A.Compilationfails.B.Anexceptionisthrownatruntime.C.Thecodeexecutesandprints“running”.D.Thecodeexecutesandprints“runningrunning”.E.Thecodeexecutesandprints“runningrunningrunning”.
考题
已经声明了类“publicclassthimplementsrunnable”,下面哪条语句可以启动该类型的线程_________?
A.Tht=newTh();t.start();B.newTh.start();C.Threadt=newThread(newTh());t.start();D.Tht=newTh();t.run();
考题
WhichmethodintheThreadclassisusedtocreateandlaunchanewthreadofexecution?()
A.ensp;Run();B.ensp;Start();C.ensp;Execute();D.ensp;Run(Runnableensp;r);E.ensp;Start(Runnableensp;r);F.ensp;Execute(Threadensp;t);
考题
如果类实现了Runnable接口,类必须包含的方法是( )。A.start()、stop()和run()B.actionPerformed()C.run()D.start()、stop()
考题
当一个线程t调用start后,即Threadtest t=new Threadtest().start,下面哪种描述是正确的 ()A.该t线程立即开始执行run方法B.该t线程执行完了run方法C.该t线程处于不可运行状态,没有执行run方法D.该t线程处于可运行状态,还没有执行run方法
考题
设计一个交通工具类Vehicle,包含的数据成员有车轮个数wheels和车重weight。以及带有这两个参数的构造方法,具有Run方法,Run中方法输出running字样。小车类Car是它的子类,其中增加了数据成员车载人数passenger_load。Car类中有带参数的构造方法,重写Run方法:输出Car is running。并重写ToString()方法:显示car中信息(显示车轮数、车重、车载人数)。最后编写主方法,定义car的对象,并调用Run方法,以及显示car中信息。
热门标签
最新试卷