Syntax of Declaration Element
-
<%! code !%>
-
<%! code %>
-
<jsp: scriptlet code />
-
<%jsp code !%>
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.