在Java中,运行下列程序,会产生的结果是 public class X implements Runnable { //1

在Java中,运行下列程序,会产生的结果是 public class X implements Runnable { //1 public void run(){ //2 System.out.println(“this is run()”) ; //3 } public static void main(String[] args) // 5 { X t = new X(); //6 t.start(); //7 } }

A.第一行会发生编译错误

B.第七行会发生编译错误

C.第七行会发生运行错误

D.程序会运行和启动

正确答案是B