How to make servlet thread safe?
Answer Posted / a.srinivs rao
in order to make a servlet thread safe we have to declare
the non-sharable variales inside the init method,and
sharble at the servlet class leve.
| Is This Answer Correct ? | 2 Yes | 31 No |
Post New Answer View All Answers
Is java servlet still used?
What is the difference between context parameter and context attribute?
What do you mean by session tracking and also explain its techniques?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What is the workflow of a servlet?
Difference between forward() method and sendredirect() method ?
What is the directory structure of web application?
Can you refresh servlet in client and server-side automatically?
Can we use threads in Servlets?
What is httpservlet class?
Explain the methods of request dispatcher in servlet?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What is new in ServletRequest interface ? (Servlet 2.4)
What is the use of java servlet api?
How to generate the server side programming and the advantages of it over the other languages?