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

we cant Override Jsp Service method?Why?

4 Answers   Infrasoft, Mind Tree,


what is EJB and Java servlet

2 Answers  


How to upload a file to the server using servlet?

0 Answers  


What is the difference between servlet and filter?

0 Answers  


What is difference between get and post method?

0 Answers  


What is a web application and what is it’s directory structure?

0 Answers  


What are the steps that are involved in using the httpservlet class?

0 Answers  


how to use servlets with j2ee ?

2 Answers   Tech Mahindra,


Describe in brief RequestDespatcher?

0 Answers   Tech Mahindra,


What are the objects involved when a servlet receives a call from client?

0 Answers  


How can I share objects across different sessions?

2 Answers   Accenture,


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

0 Answers  


Categories