Multiple choice technology architecture

Can we have pure java code inside JSP

  1. True

  2. False

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

JSP (JavaServer Pages) allows embedding Java code directly within the page using scriptlets (<% %>) and expressions (<%= %>). You can write pure Java code including variable declarations, method calls, control flow statements, and expressions. The JSP container translates this Java code into servlet code during compilation.