How to make servlet thread safe?
Answer Posted / monkyspiderpig
The only thing you need to do is to define only static
variables at Class level. When a method is called each
thread gets a new variable.
Is This Answer Correct ? | 8 Yes | 41 No |
Post New Answer View All Answers
Explain servlet events?
What are sessions in servlets?
Is it good idea to create servlet constructor?
Why do we have servlet listeners?
How can we invoke another servlet in a different application?
What is the default http method in the servlet?
Name the packages that work with servlet?
Is that servlet is pure java object or not?
What are the phases of a servlet life cycle?
What is the difference between genericservlet and httpservlet
How can we implement a jsp page?
Describe some assignments that are executed by servlet container?
How can a servlet be used to generate plain text instead of html?
What are the steps that are involved in using the httpservlet class?
What are the types of Session Tracking ?