Can we have pure java code inside JSP
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.