Spring provides 2 types of containers:

  • Spring BeanFactory Container : It provides basic support for DI and is defined by org.springframework.beans.factory.BeanFactory interface. BeanFactory and related interfaces are available in Spring for backward compatibility with third-party frameworks.
  • Spring ApplicationContext Container : It adds enterprise-specific functionalities to interested event listeners. It is defined by org.springframework.context.ApplicationContext interface.
BY Best Interview Question ON 18 Jan 2019