Multiple choice technology web technology

What is the syntax for declaring a variable

  1. <%! %>

  2. <%= %>

  3. <% %>

  4. None of the above

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

In JavaServer Pages (JSP), the &lt;%! ... %&gt; syntax is a JSP declaration, which is used to declare variables or methods that are compiled into the generated servlet class. &lt;%= ... %&gt; is an expression, and &lt;% ... %&gt; is a scriptlet.