单选题 对下列程序的叙述中,正确的是______。
1: public class X extends Thread implements Runnable
2: public void run()
3: system, out. println("this is run()");
4:
5: public static void main(String args[])
6: Thread t=new Thread(new X());
7: t. start();
8:
9:
A.第1行会产生编译错误
B.第6行会产生编译错程
C.第6行会产生运行错误
D.程序正常运行

【正确答案】 D
【答案解析】[解析] 程序正常运行打印this is run()。用Thread类的构造方法Thread(Runnable target)创建线程对象时,构造方法中的参数必须是一个具体的对象,该对象称作线程的目标对象,创建的目标对象的类必须实现Runnable接口。