Discussion
How many copies of a JSP page can be in memory at a time?
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.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development