Using comments in a JSP page

There are several ways to use comments in JSP:

1) JSP comments (not compiled nor executed)
   <%-- Counter is <%=counter%> --%>
 
or
2) Java comments (not compiled nor executed)
   <%
      // Calculate the counter
      /*
         Counter is <%=counter%>
      */
 
or
3)  HTML comments (compiled and executed, but not displayed
    by browser!)
 
   <!--
      Counter is <%=counter%> 
   -->