Is Servlet Class Thread safe?????? How to make servlet
Thread safe ???
Answer Posted / samba
NO.
Servlet is not thread safe.it allows to access more than one
thread at a time.IF we want to make servlet as a thread safe
then make service method is synchronized or implement
SingleThreadModel interface.There is no methods in this
interface.
Is This Answer Correct ? | 21 Yes | 0 No |
Post New Answer View All Answers
Name the different ways of session tracking.
What is setattribute in servlet?
What are the types of servlets? Explain
How to get the actual path of servlet in server?
What if we pass negative value in load-on-startup?
What’s the difference between genericservlet and httpservlet?
How can the session in servlet can be destroyed?
How is an application exception handling is done using a servlet?
How do you design microservices?
What’s the difference between sendredirect and forward methods
What is the structure of the http response
What is meant by a servlet?
What is the use of httpservletrequestwrapper?
What is servlet collaboration?
What is url encoding and url decoding