微信搜索关注"91考试网"公众号,领30元,获取公务员、事业编、教师等考试资料40G!
bsp; 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
(27)阅读下面程序
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
(28)阅读下面程序
public class Test implements Runnable{
public static void main(String[]args){
__________________________