Multiple choice technology web technology

JSP expressions should be enclosed within

  1. <% %>

  2. <%= %>

  3. <%! %>

  4. <!-- -->

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

JSP (JavaServer Pages) uses specific syntax for different types of code: <%= %> for expressions (evaluated and output), <% %> for scriptlets (Java code), and <%! %> for declarations. Expressions enclosed in <%= %> are evaluated at runtime and their result is sent to the output stream.