21 real Core & IoC Container questions from the Spring bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.
1. What is Inversion of Control?
Junior
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
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
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
8. Which term means: "the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features"?
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
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
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"?
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
Answers, AI explanations, and a scored voice mock interview
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.