阅读下面程序 public class Test2 ______ {  public static void main(String[] args) {   Thread t=new Test2();   t.start();

admin2012-03-21  99

问题 阅读下面程序    public class Test2 ______ {     public static void main(String[] args) {      Thread t=new Test2();      t.start();     }     public void run() {      System.out.println("How are you.");     }    }    程序中下画线处应填入的正确选项是

选项 A、implements Thread
B、extends Runnable
C、implements Runnable
D、extends Thread

答案D

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

随机试题
最新回复(0)