21 Core & IoC Container questions from the Spring bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.a principle where the framework, not your code, creates and wires object dependencies
B.a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
C.a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
D.an object instantiated, assembled, and managed by the framework's container
Answer + AI explanation with Pro
2. Which term means: "a principle where the framework, not your code, creates and wires object dependencies"?
Junior
A.@Repository
B.ApplicationContext
C.Inversion of Control
D.BeanFactory
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Inversion of Control — a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
B.Inversion of Control — the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
C.Inversion of Control — the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
D.Inversion of Control — a principle where the framework, not your code, creates and wires object dependencies
Answer + AI explanation with Pro
4. What is ApplicationContext?
Junior
A.a principle where the framework, not your code, creates and wires object dependencies
B.the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
C.the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
D.a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
Answer + AI explanation with Pro
5. Which term means: "the central interface representing the Spring container that manages beans plus events, i18n, and resource loading"?
Junior
A.@Repository
B.@Component
C.ApplicationContext
D.Spring bean
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.ApplicationContext — a generic stereotype annotation marking a class for automatic detection during classpath scanning
B.ApplicationContext — the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
C.ApplicationContext — an object instantiated, assembled, and managed by the framework's container
D.ApplicationContext — a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
Answer + AI explanation with Pro
7. What is BeanFactory?
Mid
A.a principle where the framework, not your code, creates and wires object dependencies
B.a generic stereotype annotation marking a class for automatic detection during classpath scanning
C.the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
D.the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
Answer + AI explanation with Pro
8. Which term means: "the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features"?
Mid
A.BeanFactory
B.@Component
C.@Service
D.Spring bean
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.BeanFactory — the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
B.BeanFactory — a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
C.BeanFactory — the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
D.BeanFactory — a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
Answer + AI explanation with Pro
10. What is Spring bean?
Junior
A.a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
B.a principle where the framework, not your code, creates and wires object dependencies
C.the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
D.an object instantiated, assembled, and managed by the framework's container
Answer + AI explanation with Pro
11. Which term means: "an object instantiated, assembled, and managed by the framework's container"?
Junior
A.BeanFactory
B.Spring bean
C.Inversion of Control
D.@Service
Answer + AI explanation with Pro
12. Which statement is correct?
Junior
A.Spring bean — a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
B.Spring bean — an object instantiated, assembled, and managed by the framework's container
C.Spring bean — a generic stereotype annotation marking a class for automatic detection during classpath scanning
D.Spring bean — a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
Answer + AI explanation with Pro
13. What is @Component?
Junior
A.a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
B.a principle where the framework, not your code, creates and wires object dependencies
C.a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
D.a generic stereotype annotation marking a class for automatic detection during classpath scanning
Answer + AI explanation with Pro
14. Which term means: "a generic stereotype annotation marking a class for automatic detection during classpath scanning"?
Junior
A.BeanFactory
B.@Component
C.Inversion of Control
D.@Service
Answer + AI explanation with Pro
15. Which statement is correct?
Junior
A.@Component — the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
B.@Component — a generic stereotype annotation marking a class for automatic detection during classpath scanning
C.@Component — an object instantiated, assembled, and managed by the framework's container
D.@Component — the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
Answer + AI explanation with Pro
16. What is @Service?
Mid
A.a principle where the framework, not your code, creates and wires object dependencies
B.a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
C.a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
D.the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
Answer + AI explanation with Pro
17. Which term means: "a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype"?
Mid
A.Inversion of Control
B.@Service
C.@Repository
D.Spring bean
Answer + AI explanation with Pro
18. Which statement is correct?
Mid
A.@Service — an object instantiated, assembled, and managed by the framework's container
B.@Service — the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
C.@Service — a principle where the framework, not your code, creates and wires object dependencies
D.@Service — a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
Answer + AI explanation with Pro
19. What is @Repository?
Mid
A.a generic stereotype annotation marking a class for automatic detection during classpath scanning
B.the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
C.a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
D.a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
Answer + AI explanation with Pro
20. Which term means: "a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy"?
Mid
A.BeanFactory
B.Inversion of Control
C.@Service
D.@Repository
Answer + AI explanation with Pro
21. Which statement is correct?
Mid
A.@Repository — the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
B.@Repository — a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
C.@Repository — a principle where the framework, not your code, creates and wires object dependencies
D.@Repository — a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Core & IoC Container question come with Pro.