1.

Explain the difference between Singleton and prototype bean in spring?

Answer»
 SingletonPrototype
1.Single bean to a single OBJECTSingle bean to any number of objects
2.Returns same object each TIME it GETS injectedCreates a new object each time it gets injected
3.Use for STATELESS BEANSUse for stateful beans


Discussion

No Comment Found