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 exception should be thrown when servlet is not properly initialized?
What is a servlet?
What is new in ServletRequest interface ? (Servlet 2.4)
How httpservlet is different from the genericservlet?
Can we get PrintWriter and ServletOutputStream both in a servlet?
What are different ways for authentication of servlet?
What is servlet container. how it works?
What do you mean by servlet?
What are the functions of Servlet container?
Differentiate between get and post?
What is servlet container?
How can we create deadlock situation in servlet?
Which java application server is the best?
What are the functions of the servlet container?
Tell the new features added in servletrequest interface i.e. Servlet 2.4