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.)
Using Spring's Dependency Injection (DI) provides several advantages. Firstly, DI allows for the management of dependencies between application components to be handled externally (C), which means the components themselves do not need to manage the instantiation or lifecycle of their dependencies. Secondly, DI enables the externalization and centralization of configuration (D) into a small set of files, thus simplifying the management of configurations across different environments. Lastly, DI encourages loose coupling between components (F), as dependencies are injected rather than hard coded, making the system more modular and easier to maintain and test.
I think C, D and F are the best answer
correct
why A and C are wrong ?
A. is incorrect. Dependency Injection decouples behavior from construction, making it easier to manage and test components independently.