Multiple choice technology programming languages

Which of the tag contains a code fragment valid in the page scripting language

  1. <%= expressions %>

  2. <% code fragment %

  3. <%! Declarations %>

  4. <%-- comment -- %>

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

The <% code fragment %> tag (scriptlet) contains Java code fragments that are valid in the page scripting language. This code is placed in the _jspService() method of the generated Servlet and executes during request processing.