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


Please Help Members By Posting Answers For Below Questions

How can you push data from an Applet to a Servlet?

609


How many objects of a servlet is created?

792


What do you mean by request dispatcher in servlet?

612


What are the different methods of session management in servlets?

540


If servlet receives multiple requests, how many objects will it create?

830






Explain the working of service() method of a servlet.

506


Define the lifecycle for executing a jsp page.

595


Differentiate between the print writer and servlet output stream?

563


What is servlet configuration?

531


List the Different types of servlet?

587


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()?

618


How do we go with database connection and log4j integration in servlet?

705


What are the disadvantages of storing session state in cookies?

630


How do you get the ip address of the client in servlet?

551


What are the kinds of http requests?

611