Spring / Spring interview questions
What is the difference between singleton and prototype bean?
Both refers to the scope of a beans which defines their existence on the application.
Singleton
single object instance per Spring IOC container.
Prototype
Spring IoC container creates new bean instance of the object every time a request for that specific bean is made.
More Related questions...