When a JSP page is compiled, what is it turned into?
-
Applet
-
Servlet
-
Application
-
Midlet
B
Correct answer
Explanation
When a JSP page is first requested, it is translated and compiled into a Servlet. The generated Servlet class extends HttpJspPage and implements the _jspService() method that contains the page logic. This Servlet is then instantiated and handles subsequent requests. Applets, Applications, and Midlets are different Java application types.