JDBC, Java Server Pages, and MySQL - Technical MCQs

Q1:

A JSP is transformed into a(n):

A Java applet.

B Java servlet.

C Either 1 or 2 above.

D Neither 1 nor 2 above.

ANS:B - Java servlet.

Java servlet consists of java codes in which html is embedded in it, which is consider as a tedious one. So to overcome this they developed JSP, which consists of java code embedded in the html and is easy to develop. Eventhough any code written in JSP when compiled it will be formed into servlet and it executes.