3下碳程序段的输出结果是( )。 class Test{ public static void main(Srting args[]){ MyThread t=new MyThread(); t.

admin2010-07-28  50

问题 3下碳程序段的输出结果是(   )。     class Test{       public static void main(Srting args[]){          MyThread t=new MyThread();          t.displayOutput("t has been created");          t.start();        }     }       class MyThread extends Thread{          public void displayOutput(String s){             SYStem.out.println(s);        }       public void run() {          displayOutput("t is running.");      }    }

选项 A、t has been created.
B、t has been created.       t is running.
C、t is running.
D、编译出错

答案1

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

最新回复(0)