Machine-translated by Google. Questions are authored in English.
Top

Discussion

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.

Answer: B

Correct answer: Java servlet.

A JSP page is translated by the container into the source of a servlet, which is then compiled and run like any other. The translation happens once, on first request, which is why the first hit on a page is slow and later ones are not. The JSP is therefore a convenient way of writing a servlet, not a different technology.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.