Advanced Java Session 2 (Conecpt of IOC And Dependency Injection And Maven)
1.What is IOC Inversion of control means the program delegates control to someone else who will drive the flow. IOC (Inversion of control) is a general parent term while DI (Dependency injection) is a subset of IOC. IOC is a container responsible to instantiate, configure and assemble the objects. The IoC container gets informations from the XML file and works accordingly. The main tasks performed by IoC container are: to instantiate the application class to configure the object to assemble the dependencies between the objects There are two types of IoC containers. They are: 1. BeanFactory 2. ApplicationContext 2.Difference between BeanFactory and the ApplicationContext The org.springframework.beans.factory. BeanFactory and the org.springframework.context. ApplicationContext interfaces acts as the IoC container. The ApplicationContext interface is built o...