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
How to get the path of servlet in the server?
What is the difference between portlet and servlet?
Why do we have servlet filters?
What are the different types of servlets?
What is setattribute in servlet?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
What is meant by session? Tell me something about httpsession class?
What is the difference between get and post methods?
Why is servlet used?
What is the directory structure of web application?
What are the different session tracking techniques?
How can you create a session in servlet?
What is httpservlet class?
What are the phases of a servlet life cycle?
How can an existing session be invalidated?