adspace
What is the difference between singleton and prototype bean?
Answer Posted / Muin Ahmad Khan
Singleton Beans are defined as a single instance per Spring IoC container. When a new bean is required, the existing one is returned from the Spring container's cache. Prototype Beans are created every time a new bean is requested. This means that each request will result in a new object instance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers