试题详情

对下列程序的叙述中,正确的是:   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程序正常运行