Which three statements are advantages of using Spring’s Dependency Injection? (Choose three.)
Which three statements are advantages of using Spring’s Dependency Injection? (Choose three.)
A . Dependency injection can make code easier to trace because it couples behavior with construction.
B . Dependency injection reduces the start-up time of an application.
C . Dependencies between application components can be managed external to the components.
D . Configuration can be externalized and centralized in a small set of files.
E . Dependency injection creates tight coupling between components.
F . Dependency injection facilitates loose coupling between components.
Answer: CDF
Explanation:
C. Dependencies between application components can be managed external to the components. This is true because dependency injection allows the application components to declare their dependencies without creating or obtaining them directly. Instead, the dependencies are provided by an external entity, such as the Spring container, which can read the configuration from XML files, annotations, or Java code1.
D. Configuration can be externalized and centralized in a small set of files.
This is true because dependency injection enables the separation of concerns between the application logic and the configuration. The configuration can be stored in a small number of files that can be easily changed without affecting the source code2.
F. Dependency injection facilitates loose coupling between components.
This is true because dependency injection reduces the direct dependencies between components, making them more reusable and testable. It also allows for easier substitution of different implementations of the same interface3.
Latest 2V0-72.22 Dumps Valid Version with 60 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund