Differentiate between singleton and prototype bean?



Differentiate between singleton and prototype bean?..

Answer / 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

More Spring Framework Interview Questions

What is a transactional view?

1 Answers  


What is aop?

1 Answers  


What is stateless bean in spring?

1 Answers  


What is @springboottest?

1 Answers  


What is @qualifier in spring?

1 Answers  


What are the different types of automatic binding in spring?

1 Answers  


Why do we use spring bean?

1 Answers  


What are the different advice types in spring?

1 Answers  


How long does it take to learn spring and hibernate?

1 Answers  


What are the benefits of using spring framework?

1 Answers  


What is rest api in spring boot? : Spring Boot

1 Answers  


What does entitymanager merge do?

1 Answers  


Categories