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
Java | Advance Java | Multiple Choice | Questions and Answers | Test Bank
a. <%! Date d = new Date(); %>
b. <%! Date d = new Date() %>
c. <%@ Date d = new Date() %>
d. <% Date d = new Date() %>
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.