单项选择题

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

A.Test t=flew Test()
B.Thread t=new Thread();
C.Thread t=new Thread(new Test());
D.Test t=new Thread();

<上一题 目录 下一题>
热门 试题

单项选择题
阅读下面写文件的程序 import java. io. *; public class WriteFile{ public static void main(String[]A) { int[]myArray={10,20,30,40}; try{ FileOutputStream f=new FlieOutStream( ints. dat ); DataOutputStream______=new DataOutputStream(f); for(int i=0; i<myArray. length; i ++) dos. writeInt(myArray[i]); dos. close(); System. out. prinfln( Have written binary file ints. dat ); } catch(IOException ioe){ System. out. println( IO Exception ); } } 在程序下画线处填入的正确选项是()

A.myArray
B.dos
C.ioe
D.ints

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

A.implements Thread
B.extends Runnable
C.implements Runnable
D.extends Thread

相关试题
  • Java中,可以通过建立java. lang. 【1...
  • Swing中的组件往往采用MVC结构,MVC指的是M...
  • 如果一个线程调用 【15】 ()方法,将...
  • 请将下面的Applet程序补充完整。 import ...
  • 请将下面程序补充完整。 public class P...