多选题Given: 11. Which three EL expressions are valid and evaluate to true?()A${not map.c}B${map.d or map.a}C${map.a and map.d}D${map.false or map.true}E${map.a and map.b or map.a}

多选题
Given: 11. Which three EL expressions are valid and evaluate to true?()
A

${not map.c}

B

${map.d or map.a}

C

${map.a and map.d}

D

${map.false or map.true}

E

${map.a and map.b or map.a}


参考解析

解析: 暂无解析

相关考题:

Given:11.%java.util.Mapmap=newjava.util.HashMap();12.request.setAttribute(map%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,arevalidandevaluatetod?()A.${map.c}B.${map[c]}C.${map[c]}D.${map.map.b}E.${map[map.b]}

Given:11.//insertcodehere12.min.doubleValue())17.min=added;18.if(max==null||added.doubleValue()max.doubleValue())19.max=added;20.}21.}Whichtwo,insertedatline11,willallowthecodetocompile?()

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"?()A、${vals.2}B、${vals["2"]}C、${vals.index}D、${vals[index]}E、${vals}[index]F、${vals[vals[index-1]]}

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"?()A、${map.c}B、${map[c]}C、${map["c"]}D、${map.map.b}E、${map[map.b]}

Given:   11. String test = "This is a test";   12. String[] tokens = test.split("/s");   13. System.out.println(tokens.length);   What is the result?()A、 An exception is thrown at runtime.B、 1C、 4D、 Compilation fails.E、 0

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?() A、 Collections.reverseSort(list, new MyComparator());B、 Collections.sort(list, new MyComparator()); list.reverse();C、 Collections.sort(list, new InverseComparator( new MyComparator()));D、 Collections.sort(list, Collections.reverseOrder( new MyComparator()));

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?() A、 Point p = new Point();B、 Line.Point p = new Line.Point();C、 The Point class cannot be instatiated at line 15.D、 Line 1 = new Line() ; 1.Point p = new 1.Point();

下面哪种是正确的创建Map集合的方式()。A、Map m=new Map();B、Map m=new Map(init capacity,increment capacity);C、Map m=new Map(new Collection());D、Map是接口,所以不能实例化。

给定如下Java程序代码片段,编译运行这段代码,结果是()。 java.util.HashMap map=new java.util.HashMap(); map.put("name",null); map.put("name","Jack"); System.out.println(map.get("name"));A、nullB、JackC、nullJackD、运行时出现异常

线程安全的map在JDK 1.5及其更高版本环境有哪几种方法可以实现()。A、Map map = new HashMap()B、Map map = new TreeMap()C、Map map = new ConcurrentHashMap()D、Map map = Collections.synchronizedMap(new HashMap())

Given: 11.% java.util.Map map = new java.util.HashMap(); 12.request.setAttribute("map", map); 13.map.put("a", "true"); 14.map.put("b", "false"); 15.map.put("c", "42"); % Which three EL expressions are valid and evaluate to true?()A、${not map.c}B、${map.d or map.a}C、${map.a and map.d}D、${map.false or map.true}E、${map.a and map.b or map.a}

11. public void someMethod(Object value) {  12. // check for null value ....  20. System.out.println(value.getClass());  21. }  What, inserted at line 12, is the appropriate way to handle a null value?() A、 assert value == null;B、 assert value !null, “value is null”;C、 if (value == null) { throw new AssertionException(”value is null”);D、 if (value == null) { throw new IllegalArgumentException(”value is null”);

1. public class A {  2.  3. private int counter = 0;  4.  5. public static int getInstanceCount() {  6. return counter;  7. }  8.  9. public A() {  10. counter++;  11. }  12.  13. }  Given this code from Class B:  25.A a1 =new A();  26. A a2 =new A();  27. A a3 =new A();  28. System.out.printIn(A.getInstanceCount() ); What is the result?() A、 Compilation of class A fails.B、 Line 28 prints the value 3 to System.out.C、 Line 28 prints the value 1 to System.out.D、 A runtime error occurs when line 25 executes.E、 Compilation fails because of an error on line 28.

Given:   11. static class A {   12. void process() throws Exception { throw new Exception(); }   13. }   14. static class B extends A {   15. void process() { System.out.println("B "); }   16. }   17. public static void main(String[] args) {   18. A a = new B();   19. a.process();   20. }   What is the result? ()A、 Compilation fails because of an error in line 19.B、 An exception is thrown at runtime.C、 BD、 Compilation fails because of an error in line 18.E、 Compilation fails because of an error in line 15. F、 The code runs with no output.

多选题Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()AJava codeBTemplate textCScripting codeDStandard actionEExpression language

多选题Given: 11. 16. Which three EL expressions, inserted at line 16, are valid and evaluate to "d"?()A${map.c}B${map[c]}C${map[c]}D${map.map.b}E${map[map.b]}

单选题1. public class A {  2.  3. private int counter = 0;  4.  5. public static int getInstanceCount() {  6. return counter;  7. }  8.  9. public A() {  10. counter++;  11. }  12.  13. }  Given this code from Class B:  25.A a1 =new A();  26. A a2 =new A();  27. A a3 =new A();  28. System.out.printIn(A.getInstanceCount() ); What is the result?()A Compilation of class A fails.B Line 28 prints the value 3 to System.out.C Line 28 prints the value 1 to System.out.D A runtime error occurs when line 25 executes.E Compilation fails because of an error on line 28.

多选题Given: 11. Which three EL expressions are valid and evaluate to true?()A${not map.c}B${map.d or map.a}C${map.a and map.d}D${map.false or map.true}E${map.a and map.b or map.a}

单选题11. public void someMethod(Object value) {  12. // check for null value ....  20. System.out.println(value.getClass());  21. }  What, inserted at line 12, is the appropriate way to handle a null value?()A assert value == null;B assert value !null, “value is null”;C if (value == null) { throw new AssertionException(”value is null”);D if (value == null) { throw new IllegalArgumentException(”value is null”);

单选题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?()A Collections.reverseSort(list, new MyComparator());B Collections.sort(list, new MyComparator()); list.reverse();C Collections.sort(list, new InverseComparator( new MyComparator()));D Collections.sort(list, Collections.reverseOrder( new MyComparator()));

单选题Given:   11. public void genNumbers() {   12. ArrayList numbers = new ArrayList();   13. for (int i=0; i10; i++) { 14. int value = i * ((int) Math.random());   15. Integer intObj = new Integer(value);   16. numbers.add(intObj);   17. }   18. System.out.println(numbers);   19. }   Which line of code marks the earliest point that an object referenced by intObj becomes a  candidate for garbage collection?()A Line 19B The object is NOT a candidate for garbage collection.C Line 17D Line 16E Line 18

单选题Given a method that must ensure that its parameter is not null: 11. public void someMethod(Object value) { 12. // check for null value ... 20. System.out.println(value.getClass()); 21. } What inserted at line 12, is the appropriate way to handle a null value?()Aassert value == null;Bassert value != null, value is null;Cif (value == null) { throw new AssertionException(value is null); }Dif (value == null) { throw new IllegalArgumentException(value is null); }

单选题Given:   11. public static void main(String[] args) {   12. Object obj = new int[] { 1, 2, 3 };   13. int[] someArray = (int[])obj;   14. for (int i : someArray) System.out.print(i + " ");   15. }   What is the result? ()A Compilation fails because of an error in line 13.B A ClassCastException is thrown at runtime.C 1 2 3D Compilation fails because of an error in line 14.E Compilation fails because of an error in line 12.

多选题Given: 11. 16. Which three EL expressions, inserted at line 16, are valid and evaluate to "d"?()A${map.c}B${map[c]}C${map[c]}D${map.map.b}E${map[map.b]}

单选题Given:   11. String test = "This is a test";   12. String[] tokens = test.split("/s");   13. System.out.println(tokens.length);   What is the result?()A An exception is thrown at runtime.B 1C 4D Compilation fails.E 0

单选题The company should establish procedures to ensure that()related to safety and protection of the environment are given proper familiarization with their duties.Instructions which are essential to be provided prior to sailing should be identified,documented and given.ANew personnelBPersonnel transferred to new assignmentsCAll crewmembersDNew personnel and Personnel transferred to new assignments

单选题给定如下Java程序代码片段,编译运行这段代码,结果是()。 java.util.HashMap map=new java.util.HashMap(); map.put("name",null); map.put("name","Jack"); System.out.println(map.get("name"));AnullBJackCnullJackD运行时出现异常

单选题下面哪种是正确的创建Map集合的方式()。AMap m=new Map();BMap m=new Map(init capacity,increment capacity);CMap m=new Map(new Collection());DMap是接口,所以不能实例化。