Difficulty: Easy
Correct Answer: Java only
Explanation:
Introduction:
JSP lets developers embed code fragments and expressions into HTML templates that are compiled into servlets. Knowing which language JSP natively supports avoids confusion with other server-side frameworks and ensures compatibility with the Java EE ecosystem.
Given Data / Assumptions:
Concept / Approach:
JSP is part of the Java platform; embedded scriptlets, declarations, and expressions use Java syntax. Tag libraries and Expression Language (EL) provide higher-level abstractions, but when scriptlets appear, they are Java. Therefore, among the options provided, only “Java” is correct.
Step-by-Step Solution:
1) Confirm that JSP compiles to a Java servlet.2) Recognize that code inside JSP scriptlets uses Java.3) Exclude VBScript and JScript as non-Java technologies.4) Select “Java only.”
Verification / Alternative check:
JSP specifications and examples show Java code in <% ... %> blocks, and the resulting .java servlet source generated by the container uses Java exclusively.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing JSP with general server-side templating engines that may embed various languages; JSP is Java-centric.
Final Answer:
Java only
Discussion & Comments