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


https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/ApplicationContext.html

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need