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]}
A: ${map.c}
B: ${map[c]}
C: ${map["c"]}
D: ${map.map.b}
E: ${map[map.b]}
举一反三
- 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}
- 下面创建HashMap的语句中,正确的是 ( )。 A: Map m= new HashMap(); B: HashMap m= new Map(); C: HashMap m=new HashMap<String,String>; D: Map m = new Map();
- 下列语句正确的是?() A: Map B: Map<> C: HashMap< D: Map<String,String>
- 下面创建HashMap的语句中,正确的是 ( )。 A: Map m= new HashMap(); B: HashMap m= new Map(); C: HashMap m=new HashMap<String,String>; D: Map m = new Map();
- 下面关于MAP说法正确的有() A: MAP=1/3SBP+2/3DBP B: MAP=DBP+1/3脉压 C: MAP=CO×SVR D: MAP=(SBP+DBP)/2 E: MAP=(2DBP+SBP)×1/3