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 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.