阿摩線上測驗 登入

試題詳解

試卷:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(51-100)#84004 | 科目:OCE

試卷資訊

試卷名稱:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(51-100)#84004

科目:OCE

63 You are building a web application with a scheduling component. On the JSP, you need to show the current date, 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 : curData; signature: java.util.utilDate CurrentDate() * Name : curData; signature: java.util.utilDate addweek (java.util.Date, int) * Name: dateString; signature: java.util.String getDataString (jave.util.Data) Which EL code snippet will generate the string for the previous week?
(A) ${d:dateString(affWeek(curDate(), -1)) }
(B) ${d:dateString [addWeek[curDate[], - ]] }
(C) ${d:dateString [d:addWeek[d:curDate[], - 1]] }
(D) ${d:dateString (d:addWeek(d:curDate(), -1)) }
正確答案:登入後查看