单选题 请阅读下面程序
public class ThreadTest
public static void main(String args[])throws Exception
int i=0:
Hello t=new Hello();
_________;
while(true)
System.out.println("Good Morning"+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;
为使该程序正确执行,下画线处的语句应是( )。

【正确答案】 D
【答案解析】[解析] 程序中通过继承Thread类来创建线程,而Java中新创建的线程不会自动运行,必须调用线程的start()方法,才能运行该线程。