Spring / Spring7 basics Interview questions
What is a BeanFactory in Spring?
BeanFactory is the root interface of Spring's IoC container - it defines the core contract for holding bean definitions and producing bean instances on request, including support for dependency injection, bean scopes, and lifecycle callbacks. It is intentionally minimal and lightweight compared to ApplicationContext.
In practice, almost no application code uses BeanFactory directly anymore. ApplicationContext is a subinterface that adds AOP integration, event handling, and easier configuration, so it's the interface every Spring Boot or Spring MVC application actually works with. BeanFactory still matters conceptually because it's where lazy bean instantiation and the basic getBean() contract are defined.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
