Multiple choice technology

Syntax of Declaration Element

  1. <%! code !%>

  2. <%! code %>

  3. <jsp: scriptlet code />

  4. <%jsp code !%>

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

The declaration element syntax in JSP is <%! code %>. Declaration elements are used to define methods and class-level variables that become part of the generated servlet class. Unlike scriptlets, declarations run at class initialization, not per request.