Spring is a container - Why and How?
In Spring framework, the IOC container is represented by the interface ApplicationContext which holds all objects in a project, later we can ask ApplicationContext for any bean/object by using a method called “ getBean() ” we will see this later in details.
The Spring container is responsible for instantiating, configuring and assembling objects known as beans, as well as managing their lifecycle.
The Spring framework provides several implementations of the ApplicationContext interface
In order to assemble beans, the container uses configuration metadata, which can be in the form of XML configuration or annotations.