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
What is the web server used for running the Servlets?
How do we translate jsp?
What does the term localization refer to?
What is the GenericServlet class?
What are different methods of session management in servlets?
What are the life cycle methods of the servlet?
What is the use of httpservletrequestwrapper?
Explain web application directory arrangement?
What are different ways for servlet authentication?
Why do you use session tracking in httpservlet?
Write the code to get the server information in 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 generic servlet class?
What are the types of servlet?
What are some disadvantages of storing session state in cookies?