0 votes
in Spring by

What is the primary goal of Dependency Injection (DI) in Spring?

a) Memory management

b) Decoupling application components

c) Providing annotations

d) Generating Java bytecode

1 Answer

0 votes
by
b) Decoupling application components

Explanation:

Dependency Injection promotes the decoupling of components. Instead of components searching for their dependencies, they are provided (injected) with them, thus improving modularity and testability.
...