Which is better to use, ApplicationContext or BeanFactory?

7. Which is better to use, ApplicationContext or BeanFactory?

  1. BeanFactory
  2. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.