JAVAOOP 复习题笔试JAVAOOP 复习题类型:(笔试)范围:内测/月考日期:时长:1 小时总分数:100 分姓名:准考证号:证件号码:理论部分注意:考试结束试卷必须交回,答案填写在答题卡上1..给定两个 java 程序,如下:Text.java 的编译运行成果是(选一项)pubilc interface Face{ int count = 40;}pubilc class Text implements Face{ private static int counter; pubilc static void main(String[]args){ System.out.println( counter );}}A、40B、41C、0D、12.Java 程序中读入顾客输入的一种值,规定创立一种自定义的异常,假如输入值不小于 10,使用 throw 语句显式地引起异常,异常输出信息为“something’s wrong!”,语句为(选一项)A、if (I>10) throw Exception("something’s wrong!");B、if (I>10) throw Exception e ("something’s wrong!");C、if (I>10) throw new Exception("something’s wrong!");D、if (I>10) throw new Exception e ("something’s wrong!");3.Java 程序中类的定义如下:class Demo { private int[] count; public Demo(){ count=new int[10]; } public void setCount(int ct,int n){ count[n]=ct; } public int getCount(int n){ return count[n]; } public void showCount(int n){ System.out.println("Count is "+count[n]); }}在创立 Demo 类的实例后,通过调用 showCount(9)措施得到的显示成果是(选一项)A、Count is 0B、Count is nullC、编译错误D、运行时错误4.java 程序中有如下代码:DataInputStream din = new DataInputStream ( new BufferedInputStream(new FileInputStream("employee.dat") ));假设在 employee.dat 文献中只有如下一段字符:abcdefg。则:System.out.println(din.read())在屏幕上打印(选一项)A、AB、BC、97D、985.java 语言中,下列处理输出操作的所有类的基础的是(选一项)A、DataOutputB、OutputStreamC、BufferedOutputStreamD、IOStream6.Java 中,使用()修饰符时,一种类能被同一包或不一样包中的其他类访问。(选一项)A、privateB、protectedC、publicD、friendly7.public class MyClass1{public static void main (String argv[]){}_____ class MyInner {}}在以上 java 代码中的横线上,不可放置()修饰符。(选一项)A、publ...