Skip to content
Sharp

Spring Core · interview question

In Spring Boot, what is the default scope of a bean if no scope is explicitly defined?

Multiple choiceEasychapter-9-curatedpremiumspring-corebean-scope
Choose one answer
Answer and explanation

Correct answer

B. Singleton

Why

In Spring, the default scope for a bean is Singleton. This means a single instance of the bean is created per Spring IoC container and shared across the entire application.

Test yourself on Spring Core

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

Start free test
All Spring Core questions →