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

Discussion

How many copies of a JSP page can be in memory at a time?

  • A.One
  • B.Two
  • C.Three
  • D.Unlimited

Answer: A

Correct answer: One

The container keeps a single instance of the translated servlet and serves every concurrent request from it, each on its own thread. This is why a JSP must be written to be thread-safe: an instance variable is shared across all users, and only local variables within the service method are private to a request.

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

Post your comment

Please log in or register to post a comment.