Multiple choice technology

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 allows embedding pure Java code through scriptlets (<% ... %>). You can write any valid Java code inside these scriptlet blocks. However, this is considered poor practice in modern JSP development - JSTL tags, EL expressions, and MVC patterns are preferred. The question asks about capability, not best practices.