阅读下面程序 public class Test implements Runnable {  public static void main(String[] args) {   ______   t.start();  }

admin2012-03-21  48

问题 阅读下面程序    public class Test implements Runnable {     public static void main(String[] args) {      ______      t.start();     }     public void run() {      System.out.println("Hello!");     }    }    程序中下画线处应填入的正确选项是

选项 A、Test t=new Test();  
B、Thread t=new Thread();
C、Thread t=new Thread(new Test());
D、Test t=new Thread();

答案C

解析
转载请注明原文地址:https://kaotiyun.com/show/262p777K
0

随机试题
最新回复(0)