Spring - Interview Questions and Answers for 'Infosys technologies' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Interview Questions


 2778 questions in repository.
 There are more than 200 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 ?Spring2017-08-20 06:35:16

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     Infosys Technologies


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 ?




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

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:
         

X Close this

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: