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
Explain the differences between jsp and servlet.
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What is the difference between servlet and jsp?
What if you need to span your transaction across multiple servlet invocations?
What is a generic servlet?
How to make sure a servlet is loaded at the application startup?
How do you deal property files in servlet?
What do you mean by annotations in servlet?
Explain the different ways for servlet authentication?
Can we use the constructor, instead of init(), to initialize servlet?
How can we include static files in the jsp page?
What is setattribute in servlet?
What is the dispatcher servlet?
What are the new features added to servlet 2.5?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?