Skip to content
Sharp

Dependency Injection · interview question

In Spring Boot, what role does the ApplicationContext play in dependency injection?

Multiple choiceMediumchapter-9-curatedpremiumdependency-injectionconstructor-vs-field-injection
Choose one answer
Answer and explanation

Correct answer

A. It serves as the central interface for accessing application components.

Why

The ApplicationContext is the central interface in Spring Boot responsible for managing beans and their dependencies, allowing for dependency injection and lifecycle management of components.

Test yourself on Dependency Injection

A free test with instant, explained results. No account needed.

Start free test
All Dependency Injection questions →