欢迎来到在线考试题库网 在线考试题库官网
logo
全部科目 > Java认证考试 > SCWCD(310-083)

单项选择题

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.<input type=’radio’ name=’hobbyEnum’ value=’HIKING’>Hiking <br>
21.<input type=’radio’ name=’hobbyEnum’ value=’SKIING’>Skiing <br>
22.<input type=’radio’ name=’hobbyEnum’ value=’SCUBA’>SCUBA Diving
23.<!-- and more options -->
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)]}

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题