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
Why is a constructor needed in a servlet even if we use the init method?
What is servletconfig?
What is the purpose of dispatcherservlet properties?
explain the advantages of servlet life cycle?
What are the types of Session Tracking ?
What is the default http method in the servlet?
What is cgi?
What is MIME Type?
Why do we have servlet filters?
How can you run a servlet program?
Is that servlet is pure java object or not?
What is the need of servlet filters?
What is servlet interface?
Which java framework is most popular?
How printwriter is different from servletoutputstream?