PrepAway - Latest Free Exam Questions & Answers

Which of the following would be most appropriate to output the current date to a browser from a JSP?

Which of the following would be most appropriate to output the current date to a browser from a
JSP?

PrepAway - Latest Free Exam Questions & Answers

A.
<% new java.util.Date().toString(); %>

B.
<%= new java.util.Date().toString() %>

C.
<%! new java.util.Date().toString(); %>

D.
<jsp:useBean id=”date” class=”java.util.Date” />


Leave a Reply