${not map.c}
${map.d or map.a}
${map.a and map.d}
${map.false or map.true}
${map.a and map.b or map.a}
第1题:
Given: 11.<% 12.request.setAttribute("vals", new String[]{"1","2","3","4"}); 13.request.setAttribute("index", "2"); 14.%> 15.<%-- insert code here --%> Which three EL expressions, inserted at line 15,are valid and evaluate to "3"?()
第2题:
Given: 11. String test = "This is a test"; 12. String[] tokens = test.split("/s"); 13. System.out.println(tokens.length); What is the result?()
第3题:
Given:11.<%java.util.Mapmap=newjava.util.HashMap();12.request.setAttribute("map",map);13.map.put("a","b");14.map.put("b","c");15.map.put("c","d");%>16.<%--insertcodehere--%>WhichthreeELexpressions,insertedatline16,arevalidandevaluateto"d"?()
A.${map.c}
B.${map[c]}
C.${map["c"]}
D.${map.map.b}
E.${map[map.b]}
第4题:
给定如下Java程序代码片段,编译运行这段代码,结果是()。 java.util.HashMap map=new java.util.HashMap(); map.put("name",null); map.put("name","Jack"); System.out.println(map.get("name"));
第5题:
10. class Line { 11. public static class Point { } 12. } 13. 14. class Triangle { 15. // insert code here 16. } Which code, inserted at line 15, creates an instance of the Point class defined in Line?()
第6题:
Given: 11.<% java.util.Map map = new java.util.HashMap(); 12.request.setAttribute("map", map); 13.map.put("a", "b"); 14.map.put("b", "c"); 15.map.put("c", "d"); %> 16.<%-- insert code here --%> Which three EL expressions, inserted at line 16, are valid and evaluate to "d"?()
第7题:
11. List list = // more code here 12. Collections.sort(list, new MyComparator()); Which code will sort this list in the opposite order of the sort in line 12?()
第8题:
Given:
11.//insertcodehere
12.privateNmin,max;
13.publicNgetMin(){returnmin;}
14.publicNgetMax(){returnmax;}
15.publicvoidadd(Nadded){
16.if(min==null||added.doubleValue()<min.doubleValue())
17.min=added;
18.if(max==null||added.doubleValue()>max.doubleValue())
19.max=added;
20.}
21.}
Whichtwo,insertedatline11,willallowthecodetocompile?()
第9题:
下面哪种是正确的创建Map集合的方式()。
第10题:
线程安全的map在JDK 1.5及其更高版本环境有哪几种方法可以实现()。