Are Servlets by default thread safe or not?
thanks in advance
regards
Sudhakar
Answers were Sorted based on User's Feedback
No.
By default Servlets are not thread safe...Bcoz Servlet is
concept of Single instance multiple threads concept.
Multiple thread are acting on single object means its not
thread safe....
| Is This Answer Correct ? | 7 Yes | 3 No |
Answer / nilofar
no by default servlets are not threads safe .oly particular
lines of service method can be synchronised to make it
thread safe
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / naresh
Yes By Default Servlets Are ThreadSafe.....
If you use Insatance VAriables then only Servlets is having Thread Related Problems
Thats way dont recommended to use Instance VAriables in servlets...Its DAnagerous
| Is This Answer Correct ? | 1 Yes | 1 No |
What is http servlet?
when the several requests comes to server..how it manage the requests
What is with the javax.servlet package naming?
Describe the phases of servlet lifecycle?
Can you call a jsp from the servlet?
How do you pass the data from one servlet to another servlet?
why are using HttpServlet in realtime projects and why are not using Genericservlet
What is servlet and its types?
How session tracking can be achieved, if your browser doesn't support cookies (or) if cookies are disabled?
Explain the difference between generic servlet and http servlet?
Hi guys.. Well can u tell me that why there is need of "init()" , i mean why can not we initialize the servlet object with the help of constructors? Thank you.
What are different Authentication options available in Servlets.