What is the difference between singleton and prototype bean?
Answer / 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 |
Are spring annotations inherited?
Does spring framework support all joinpoints?
What is spring architecture?
What is @enableautoconfiguration in spring boot? : Spring Boot
What is the benefit of spring boot? : Spring Boot
Write about the different types of listener related events?
What is namedparameterjdbctemplate in spring?
What is spring rest?
What is ioc or dependency injection?
What is the advantage of dependency injection in spring?
What does @component do in spring boot? : Spring Boot
Explain bean in spring?