请阅读下面程序 publicclassThreadTest publicstat
问题:
请阅读下面程序
publicclassThreadTest
publicstaticvoidmain(Stringargs[])throwsException
inti=0;
Hellot=newHello();
______,
while(true)
System.out.println("GoodMoming"+i++);
if(i==2&&t.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.sleep()
B.yield()
C.interrupt()
D.start()