public class ThreadTest {
public static void main ( String args[ ]) throws Exception {
int i=0;
H.ello 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 ()