Which three EL expressions, inserted at line 16, are valid and evaluate to "d"?

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”? (Choose three.)

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”? (Choose three.)

A.
${map.c}

B.
${map[c]}

C.
${map[“c”]}

D.
${map.map.b}

E.
${map[map.b]}

F.
${map.(map.b)}

Explanation:



Leave a Reply 1

Your email address will not be published. Required fields are marked *