employer cover photo
employer logo
employer logo

Tata Consultancy Services

Fait partie de Tata Group

Employeur impliqué

Question d’entretien chez Tata Consultancy Services

Difference between application Context and Bean Factory

Réponse à la question d'entretien

Utilisateur anonyme

17 mars 2020

Both BeanFactory and ApplicationContext provides a way to get a bean from Spring IOC container by calling getBean("bean name") One difference between bean factory and application context is that former only instantiate bean when you call getBean() method while ApplicationContext instantiates Singleton bean when the container is started, It doesn't wait for getBean to be called