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 can you push data from an Applet to a Servlet?
How many objects of a servlet is created?
What do you mean by request dispatcher in servlet?
What are the different methods of session management in servlets?
If servlet receives multiple requests, how many objects will it create?
Explain the working of service() method of a servlet.
Define the lifecycle for executing a jsp page.
Differentiate between the print writer and servlet output stream?
What is servlet configuration?
List the Different types of servlet?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
How do we go with database connection and log4j integration in servlet?
What are the disadvantages of storing session state in cookies?
How do you get the ip address of the client in servlet?
What are the kinds of http requests?