Is Servlet Class Thread safe?????? How to make servlet
Thread safe ???
Answer Posted / santhosh kandula
Yes, Servlet is thread safe, because the process of
servlet is request and response. whenever the request comes
then the server can respond. suppose at a time there more
request are came to the server in that which request is the
server can respond, in that time threads will be created
and based on priority of the thread response will be given
for the request.
So, servlets are thread safe.By using thread
properties we make the servlet Thread safe.
| Is This Answer Correct ? | 2 Yes | 23 No |
Post New Answer View All Answers
Define the life cycle of a servlets.
Should I override the service() method?
What’s the use of the servlet wrapper classes??
Which method is called when reference variable is passed in system.net?
What is session tracking?
why we should override only no-agrs init() method.
What exactly is a servlet?
Explain Action Servlet?
How to handle exceptions thrown by application with another servlet?
How does java thread pool work?
What are the types of servlets? Explain
If a servlet is not properly initialized, what exception may be thrown?
Explain the difference between jsp and servlet?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
When jsessionid is created?