一、单选题1.Java 中提供了名为()的包装类来包装原始字符串类型。A.Integer B.Char C.Double D.String 2.java.lang 包的()措施比较两个对象与否相等,相等返回 true。A.toString() B.equals() C.compare() D.以上所有选项都不对的3.使用()措施可以获得 Calendar 类的实例。A.get() B.equals() C.getTime() D.getInstance()4.下面的集合中,()不可以存储反复元素。A.Set B.Collection C.Map D.List5.有关 Map 和 List,下面说法对的的是()。A.Map 继承 ListB.List 中可以保留 Map 或 ListC.Map 和 List 只能保留从数据库中取出的数据D.Map 的 value 可以是 List 或 Map6.给定如下 Java 代码,编译运行的成果是()。Import java.util.*;public class Test {public static void main(String[] args) {LinkedList list=new LinkedList();list.add(“A”);list.add(2,”B”);String s=(String)list.get(1);System.out.println(s);}}A.编译时发生错误 B.运行时引起异常 C.对的运行,输出:A D.对的运行,输出:B###############################################################33.所有异常的父类是()。A.Error B.Throwable C.RuntimeException D.Exception 4.下列()操作不会抛出异常。A.除数为零 B.用负数索引访问数组C.打开不存在的文献 D.以上都会抛出异常5.能单独和 finally 语句一起使用的块是()。A.try B.throws C.throw D.catch6.在多重 catch 块中同步使用下列类时,()异常类应当最终列出。A.Exception B.ArrayIndexOutOfBoundsException C.NumberFormatException D.ArithmeticException7.执行下面的代码会引起()异常。String str=null;String strTest=new String(str);A.InvalidArgumentException B.IllegalArgumentException C.NullPointerException D.ArithmeticException8.这段代码的输出成果是()。try{System.out.print(“try,“);return;} catch(Exception e){System.out.print(“catch,“);} finally {System.out.print(“finally”);}A.try B.try,catch C.try,finally D.try, catch,finally9.这个措施的返回值是()。public int count() {try{return 5/0;} catch(Exception e){return 2*3;} finally {return 3;}}A.0 B.6 C.3 D.程序错误