TOP

2008年4月笔试试卷及参考答案(四)
2012-07-15 21:37:37 来源: 作者: 【 】 浏览:863次 评论:0
微信搜索关注"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){

          __________________________

Tags: 责任编辑:91kaoshiwang
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇2007年9月全国计算机等级考试二级.. 下一篇2007年9月全国计算机等级考试二级..

相关栏目

最新文章

推荐文章

网站客服QQ: 960335752 - 14613519 - 48225117