Which three EL expressions are valid and evaluate to true?

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

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

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}

F.
${map[‘true’] or map[‘false’]}

Explanation:



Leave a Reply 0

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