2008年4月笔试试卷及参考答案(九)

时间:2012-07-15 21:37:37

微信搜索关注"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){

          __________________________


首页 上页 8 9 下页 尾页 9/9/9
微信搜索关注"91考试网"公众号,领30元,获取公务员事业编教师考试资料40G
【省市县地区导航】【考试题库导航】

电脑版  |  手机版  |  返回顶部