adspace


Differentiate between singleton and prototype bean?

Answer Posted / Ankush Arora

Singleton Bean and Prototype Bean are two types of scopes in Spring Framework. Singleton is a single instance per Spring IoC container, while Prototype creates a new object every time it's requested.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between @controller and @restcontroller in spring?

556


What is lazy class?

490


How can you inject java collection in spring?

518