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...

Is Servlet Class Thread safe?????? How to make servlet
Thread safe ???

Answer Posted / santhosh kandula


Yes, Servlet is thread safe, because the process of
servlet is request and response. whenever the request comes
then the server can respond. suppose at a time there more
request are came to the server in that which request is the
server can respond, in that time threads will be created
and based on priority of the thread response will be given
for the request.
So, servlets are thread safe.By using thread
properties we make the servlet Thread safe.

Is This Answer Correct ?    2 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define the life cycle of a servlets.

1065


Should I override the service() method?

1094


What’s the use of the servlet wrapper classes??

1107


Which method is called when reference variable is passed in system.net?

2408


What is session tracking?

1212


why we should override only no-agrs init() method.

1134


What exactly is a servlet?

1015


Explain Action Servlet?

1092


How to handle exceptions thrown by application with another servlet?

1093


How does java thread pool work?

1120


What are the types of servlets? Explain

1267


If a servlet is not properly initialized, what exception may be thrown?

1185


Explain the difference between jsp and servlet?

1091


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

3395


When jsessionid is created?

1048