Multiple choice technology programming languages

Which of the tag is used to show the comments in the JSP page

  1. <% code fragment %>

  2. <%= expressions %>

  3. <%! Declarations %>

  4. <%-- comment -- %>

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

The <%-- comment -- %> syntax is used for JSP comments, which are ignored by the JSP container and not sent to the client browser. This is different from HTML comments () which are visible in the page source, and other JSP scripting elements (<% %>, <%= %>, <%! %>).