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
Explain in brief the directory structure of a web application?
What is the process for chaining servlet?
how the HTML data stored in web server?
What is http servlet in java?
How to find whether a parameter exists in the request object?
What do you mean by cgi in servlet?
How is an application exception handling is done using a servlet?
Can a jsp be called using a servlet?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What are the life-cycle methods for a servlet?
Why jsp is better than servlet?
What is context in servlet?
What is a servlet context object?
How native code can be used in a servlet?