Which of the following is a correct JSP declaration for a variable of class java.util.Date?

Which of the following is a correct JSP declaration for a variable of class java.util.Date?




a. <%! Date d = new Date(); %>
b. <%! Date d = new Date() %>
c. <%@ Date d = new Date() %>
d. <% Date d = new Date() %>



Answer: A


Learn More :