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


Are Servlets by default thread safe or not?

thanks in advance
regards
Sudhakar

Answers were Sorted based on User's Feedback



Are Servlets by default thread safe or not? thanks in advance regards Sudhakar..

Answer / rv.nandakishore

No.

By default Servlets are not thread safe...Bcoz Servlet is
concept of Single instance multiple threads concept.
Multiple thread are acting on single object means its not
thread safe....

Is This Answer Correct ?    7 Yes 3 No

Are Servlets by default thread safe or not? thanks in advance regards Sudhakar..

Answer / nilofar

no by default servlets are not threads safe .oly particular
lines of service method can be synchronised to make it
thread safe

Is This Answer Correct ?    3 Yes 3 No

Are Servlets by default thread safe or not? thanks in advance regards Sudhakar..

Answer / naresh

Yes By Default Servlets Are ThreadSafe.....
If you use Insatance VAriables then only Servlets is having Thread Related Problems
Thats way dont recommended to use Instance VAriables in servlets...Its DAnagerous

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Servlets Interview Questions

What is servlet in tomcat?

0 Answers  


How ThreadSafe page attribute will be working in Servlet as well as in JSP?Automatically ThresdSafe is true in JSP so service method will be destroy in each and every request or not?so how thresd will handle srevice method?

1 Answers   AZTEC,


Why is Servlet so popular?

0 Answers  


What is use of parseQueryString ?

1 Answers  


What is the difference between context parameter and context attribute?

0 Answers  


What are the different session tracking techniques?

0 Answers  


What happens, if server sends a cookie to a browser that doesn't supports cookies?

2 Answers  


What are the new features added to servlet 2.5?

0 Answers  


what is SSL?

3 Answers  


How to create war file?

0 Answers  


What do you mean by servlet?

0 Answers  


How will you pass values from HTML page to the servlet?

0 Answers  


Categories