Spring Certified Professional 2023 · Free Practice Question Medium
Question 20
Which statements accurately describe the Spring Application Context? (select 2)
-
A
The Spring Application Context is primarily used for unit testing purposes.
-
B
It provides services such as dependency injection.
-
C
The Spring Application Context is responsible for managing the lifecycle of beans.
-
D
The Spring Application Context inherits from
DispatcherServlet.
Reveal correct answers
Correct answers: B, C
Explanation
The Spring IoC container is responsible for managing the objects of an application. It uses dependency injection to achieve inversion of control.
https://www.baeldung.com/spring-application-context#applicationContext
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
