Multiple choice technology programming languages

When a JSP page is compiled, what is it turned into?

  1. Applet

  2. Servlet

  3. Application

  4. Midlet

Reveal answer Fill a bubble to check yourself
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.