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

单项选择题

You are building a web application with a scheduling component. On the JSP, you need to show the currentdate, the date of the previous week, and the date of the next week. To help you present this information,you have created the following EL functions in the ’d’ namespace: name: curDate; signature: java.util.DatecurrentDate() name: addWeek; signature: java.util.Date addWeek(java.util.Date, int) name: dateString;signature:java.util.String getDateString(java.util.Date)
Which EL code snippet will generate the string for the previousweek?

    A.${d:dateString(addWeek(curDate(), -1))}
    B.${d:dateString[addWeek[curDate[], -1]]}
    C.${d:dateString[d:addWeek[d:curDate[], -1]]}
    D.${d:dateString(d:addWeek(d:curDate(), -1))}

点击查看答案

相关考题

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

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