Home »
MCQs »
Spring MCQs
Which is better to use, ApplicationContext or BeanFactory?
7. Which is better to use, ApplicationContext or BeanFactory?
- BeanFactory
- ApplicationContext
Answer: B) ApplicationContext
Explanation:
The ApplicationContext interface is constructed on top of the BeanFactory interface. So, it provides more capabilities than BeanFactory, therefore it is better to use ApplicationContext than BeanFactory.