Are Servlets by default thread safe or not?
thanks in advance
regards
Sudhakar
Answer Posted / 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 |
Post New Answer View All Answers
why we should override only no-agrs init() method.
What is Servlet API used for connecting database?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
How do you deal property files in servlet?
How to get the actual path of servlet in server?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
How do you create a cookie using servlet?
What is cookies in servlet with example?
How do cookies work in servlets?
Can we override servlet service method?
What is Request Dispatcher?
What are important features of Servlet 3?
How do I know if java is running on linux?
Explain mvc pattern.
Why HttpServlet class is declared abstract?