多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

You are building a dating service web site. Part of the form to submit a client’s profile is a groupIIof radio buttons for the person’s hobbies: 20.Hiking 
21.Skiing 
22.SCUBA Diving 23. After the user submits this form, a confirmation screen is displayed with these hobbies listed. Assume thatan application-scoped variable, hobbies, holds a map between the Hobby enumerated type and the displayname. Which EL code snippet will display Nth element of the user’s selected hobbies?()

  • A、${hobbies[hobbyEnum[N]}
  • B、${hobbies[paramValues.hobbyEnum[N]]}
  • C、${hobbies[paramValues@’hobbyEnum’@N]}
  • D、${hobbies.get(paramValues.hobbyEnum[N])}
  • E、${hobbies[paramValues.hobbyEnum.get(N)]}
正确答案:B
答案解析:
进入题库查看解析

微信扫一扫手机做题