When should we use prototype scope and singleton scope for beans ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. When should we use prototype scope and singleton scope for beans ?Spring
Ans. We should use singleton scope for beans when they are stateless and prototype when they are stateful.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     spring   bean scope   general electric   ge  singleton


Related Questions

  What are different ways to create String Object? Explain.
  Why Char array is preferred over String for storing password?
  Does garbage collection guarantee that a program will not run out of memory?
  What do you mean by "Java is a statically typed language" ?
  What are the benefits of JSON over XML ?
  Describe, in general, how java's garbage collector works ?
  What are the advantages and disadvantages of static variables and static methods ?
  What are concepts introduced with Java 5 ?
  Describe what happens when an object is created in Java ?
  What is session tracking and how do you track a user session in servlets?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: