Medium-EasyUnderstandSpring Bootmultiple-choice

Why is constructor injection preferred over field injection in Spring?

Understand Tests comprehension and ability to explain concepts.

Answer Options

AIt allows circular dependencies
BIt supports immutability and makes dependencies explicit and testable
CIt is faster at runtime
DIt works without the Spring container

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 15+ more Spring Boot questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Spring Boot topic (Programming Languages).

More Spring Boot Questions