I was out of town at the time, so I don’t know exactly how it _______.A. was happening B. happened C. happens D. has happened
I was out of town at the time, so I don’t know exactly how it _______.
A. was happening B. happened C. happens D. has happened
相关考题:
( 28 )请阅读下面程序public class ThreadTest {public static void main ( String args[ ]) throws Exception {int i=0;Hello t = new Hello ();___________;whlle ( true ){System.out.println ( "Good Morning"+i++ ) ;if ( i=2 && t.isAlive ()){System.out.println ( "Main waiting for Hello ! ” );tjoin () ; // 等待 t 运行结束}if ( i==5 ) break :}}}class Hello extends Thread {int i ;public void run ()笼while ( true ){System.out.println ( "Hello"+i++ ) ;if ( i=5 ) break ;}}}为使该程序正确执行,下划线处的语句应是A ) t.sleep ()B ) t.yieldn ()C ) t.interrupt ()D ) t.start ()
请阅读下面程序 public class ThreadTest { public static void main(String args[]) throws Exception{ int i=0; Hello t=new Hello(); while(true) { System.out.println("Good Moming"+i++); if (i==2 t.isAlive()) { System. out.println("Main waiting for Hello!"); t.join(); //等待t运行结束 } if(i==5) break;} } } class Hello extends Thread { int i; public void run() { while(true){ System.out.println("Hello"+i++); if (i==5) break;}}} 为使该程序正确执行,下划线处的语句应是A.t.sleep()B.t.yield()C.t.interrupt()D.t.start()
–– Host: Jack, come and sit in the sofa. Dinner will be ready in a minute. Could I get you something to drink?–– Guest: ____.A: No, don ’t trouble. I ’ve drunk enoughB: No, you couldn't. I'm not thirstyC: Yes, you could. I ’d like some Coca colaD: Yes, please. I'd like some Sprite
请阅读下面程序 public class ThreadTest{ public static void main(String args[])throws Ex- ception{ int i=0; Hello t=new Hello; ; while(true){ System.Out.println("Good Morning"+i++): if(i= =2t.isAlive){ System.out.println("Main waiting for Hel- lo!"); join;//等待t运行结束 } if(i= =5)break;} } } class Hello extends Thread{ int l; public void run{ while(true)( System.Out.println("Hell0"+i++); if(i= =5)break;)))A.t.sleepB.t.yieldC.t.interruptD.t.start
____ I?know,?there?isn’t?such?a?word?in?English.A、As much asB、So far asC、As long asD、As soon as
I’d been expecting ________ letters the whole day, but there aren’t ________ for me. A.WhatB.WhereC.How
请阅读下面程序 publicclassThreadTest{ publicstaticvoidmain(Stringargs[])throwsException{ inti=0; Hellot=newHello(); ______, while(true){ System.out.println("GoodMoming"+i++); if(i==2t.isAlive()){ System.out.println("MainwaitingforHello!"); t.join();//等待t运行结束 } if(i==5)break;} } } classHelloextendsThread{ inti; publicvoidrun(){ while(true){ System.out.println("Hello"+i++); if(i==5)break;}}} 为使该程序正确执行, 下划线处的语句应是( )。A.t.sleep()B.t.yield()C.t.interrupt()D.t.start()
请在下面程序中的每条横线处填写一个语句,使程序的功能完整。程序的输出结果为:TIME=1867b=9i=123注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。源程序文件代码清单如下:import java.io.*;public class DataType{public ______ void main(String args[]){byte b;int i;//定义变量i为int类型______//定义常量TIME为整型,且值为1867i=123;//给变量i赋值,该值为十进制的123______//给变量赋值,改值为八进制的11,十进制的9System.out.println("TIME"+TIME);System.out.println("b="+b);System.out.println("i="+i);}}
-- Ann is in hospital.-- Oh, really? I __ know. I __ go and visit her.A. didn’t; am going to B. don’t; wouldC. don’t; will D. didn't; will