Core & IoC Container interview questions

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
  1. A.a principle where the framework, not your code, creates and wires object dependencies
  2. B.a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
  3. C.a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
  4. D.an object instantiated, assembled, and managed by the framework's container
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. 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
  2. B.Inversion of Control — the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
  3. C.Inversion of Control — the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
  4. D.Inversion of Control — a principle where the framework, not your code, creates and wires object dependencies
Reveal the answer + AI explanation — free account

4. What is ApplicationContext?

Junior
  1. A.a principle where the framework, not your code, creates and wires object dependencies
  2. B.the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
  3. C.the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
  4. D.a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.ApplicationContext — a generic stereotype annotation marking a class for automatic detection during classpath scanning
  2. B.ApplicationContext — the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
  3. C.ApplicationContext — an object instantiated, assembled, and managed by the framework's container
  4. D.ApplicationContext — a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
Reveal the answer + AI explanation — free account

7. What is BeanFactory?

Mid
  1. A.a principle where the framework, not your code, creates and wires object dependencies
  2. B.a generic stereotype annotation marking a class for automatic detection during classpath scanning
  3. C.the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
  4. D.the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.BeanFactory — the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
  2. B.BeanFactory — a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
  3. C.BeanFactory — the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
  4. D.BeanFactory — a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
Reveal the answer + AI explanation — free account

10. What is Spring bean?

Junior
  1. A.a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
  2. B.a principle where the framework, not your code, creates and wires object dependencies
  3. C.the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
  4. D.an object instantiated, assembled, and managed by the framework's container
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.Spring bean — a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
  2. B.Spring bean — an object instantiated, assembled, and managed by the framework's container
  3. C.Spring bean — a generic stereotype annotation marking a class for automatic detection during classpath scanning
  4. D.Spring bean — a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
Reveal the answer + AI explanation — free account

13. What is @Component?

Junior
  1. A.a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
  2. B.a principle where the framework, not your code, creates and wires object dependencies
  3. C.a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
  4. D.a generic stereotype annotation marking a class for automatic detection during classpath scanning
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Junior
  1. A.@Component — the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
  2. B.@Component — a generic stereotype annotation marking a class for automatic detection during classpath scanning
  3. C.@Component — an object instantiated, assembled, and managed by the framework's container
  4. D.@Component — the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
Reveal the answer + AI explanation — free account

16. What is @Service?

Mid
  1. A.a principle where the framework, not your code, creates and wires object dependencies
  2. B.a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
  3. C.a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
  4. D.the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.@Service — an object instantiated, assembled, and managed by the framework's container
  2. B.@Service — the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
  3. C.@Service — a principle where the framework, not your code, creates and wires object dependencies
  4. D.@Service — a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
Reveal the answer + AI explanation — free account

19. What is @Repository?

Mid
  1. A.a generic stereotype annotation marking a class for automatic detection during classpath scanning
  2. B.the central interface representing the Spring container that manages beans plus events, i18n, and resource loading
  3. C.a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
  4. D.a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
Reveal the answer + AI explanation — free account

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
  1. A.BeanFactory
  2. B.Inversion of Control
  3. C.@Service
  4. D.@Repository
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Mid
  1. A.@Repository — the most basic container interface providing lazy bean instantiation, which ApplicationContext extends with enterprise features
  2. B.@Repository — a stereotype annotation marking a class that holds business logic, a specialization of the generic component stereotype
  3. C.@Repository — a principle where the framework, not your code, creates and wires object dependencies
  4. D.@Repository — a stereotype annotation for the persistence layer that also enables translation of native data-access exceptions into the framework's hierarchy
Reveal the answer + AI explanation — free account

Free to start

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.

Practice Core & IoC Container free