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 servlet context.
What is a java servlet?
What is the procedure for initializing a servlet?
What is the default http method in the servlet?
What are different ways for authentication of servlet?
Define the lifecycle for executing a jsp page.
When jsessionid is created?
What are the exceptions thrown by servlets? Why?
What is the use of httpservletrequestwrapper?
What methods do you use in servlet - applet communication?
Can we fetch the attributes related to a servlet on a different servlet?
Explain web application directory arrangement?
What is session tracking?
How a servlet is unloaded?
Is servlet a controller?