Can we have pure java code inside JSP
A
Correct answer
Explanation
JSP supports Java code through scriptlets (<% ... %>) and expressions (<%= ... %>). You can write pure Java code directly within these tags. However, best practices recommend minimizing scriptlets in favor of JSTL and custom tags for better separation of concerns.