Spring - Interview Questions and Answers for 'Infosys technologies' | Search Interview Question - 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


Spring - Interview Questions and Answers for 'Infosys technologies' - 1 question(s) found - Order By Newest

 Q1. What is the difference between Singleton and Prototype Bean scope in Spring ?Spring
Ans. Prototype scope - A new object is created each time it is injected/looked up. It will use new SomeClass() each time.

Singleton scope - It is the default scope. The same object is returned each time it is injected/looked up. Here it will instantiate one instance of SomeClass and then return it each time.

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

   Like         Discuss         Correct / Improve     Spring beans  singleton bean scope  prototype bean scope     Asked in 1 Companies

Related Questions

  Difference between Java beans and Spring Beans ?
 Can we have two beans with same class with different bean id in spring ?
  Should we have instance variables in the Spring Bean which has been scoped as Singleton ?
  Which class provides the enumerated value for Bean Scope ?
 Explain inner beans in Spring.
 What are the disadvantages of Bean Auto Wiring in Spring ?

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: