Multiple choice technology architecture

JSP Syntax of comments

  1. <%-- comment --%>

  2. <!-- comment -->

  3. <% // comment %>

  4. <% /* comment */ %>

  5. <% /** comment */ %>

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

JSP comments are server-side comments that use the syntax <%-- comment --%>. These comments are completely removed from the generated output and never sent to the client. HTML comments are client-side and remain in the response. Java-style comments <% // %> or <% /* */ %> are scriptlet code, not JSP comments.