Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain in brief the directory structure of a web application?

1105


What is the process for chaining servlet?

1047


how the HTML data stored in web server?

2630


What is http servlet in java?

1066


How to find whether a parameter exists in the request object?

1106


What do you mean by cgi in servlet?

1072


How is an application exception handling is done using a servlet?

1016


Can a jsp be called using a servlet?

1130


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?

1249


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 ?

1081


What are the life-cycle methods for a servlet?

994


Why jsp is better than servlet?

1026


What is context in servlet?

1031


What is a servlet context object?

1134


How native code can be used in a servlet?

4062