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 / samba

NO.
Servlet is not thread safe.it allows to access more than one
thread at a time.IF we want to make servlet as a thread safe
then make service method is synchronized or implement
SingleThreadModel interface.There is no methods in this
interface.

Is This Answer Correct ?    21 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the differences between jsp and servlet.

936


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 ?

1027


What is the difference between servlet and jsp?

1049


What if you need to span your transaction across multiple servlet invocations?

1034


What is a generic servlet?

900


How to make sure a servlet is loaded at the application startup?

988


How do you deal property files in servlet?

1014


What do you mean by annotations in servlet?

1008


Explain the different ways for servlet authentication?

1031


Can we use the constructor, instead of init(), to initialize servlet?

1048


How can we include static files in the jsp page?

1009


What is setattribute in servlet?

1064


What is the dispatcher servlet?

923


What are the new features added to servlet 2.5?

1044


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

988