What is spring IOC container?
What is dependency injection?
In how many ways dependency injection can be done?
There are three types of dependency injection:
Whats is the difference between constructor injection and setter injection?
Constructor injection: Theres no partial injection, doesnt overrides the setter property, it will create new instance if any modification is done
Setter injection: there can be partial injection, overrides the constructor property if both are defined,
wront create new instance if modification is done
How many types of IOC containers are there in spring?
Bean factory & ApplicationContext
A beanFactory is like a factory class that contains a collection of beans. It instantiates the beans whenever asked for by clients.
ApplicationContext: the applicationContext interface is built on top of BeanFactory interface. It adds some extra functionaly than bean factory
Differentiate between BeanFactory and ApplicationContext
Bean factory: uses lazy initialzization
Application Context
List some of the benefits of IoC