Skip to content
Sharp

Dependency Injection · interview question

Which scope of a bean in Spring Boot is the default in Java?

Multiple choiceEasychapter-9-curatedpremiumdependency-injectionconstructor-vs-field-injection
Choose one answer
Answer and explanation

Correct answer

D. Singleton

Why

The default scope of a bean in Spring Boot is Singleton, meaning a single instance of the bean is created and shared across the entire application context.

Test yourself on Dependency Injection

A free test with instant, explained results. No account needed.

Start free test
All Dependency Injection questions →