Core & IoC Container interview questions

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.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

2. Which term means: "a principle where the framework, not your code, creates and wires object dependencies"?

Junior
  1. A.@Repository
  2. B.ApplicationContext
  3. C.Inversion of Control
  4. D.BeanFactory

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.@Repository
  2. B.@Component
  3. C.ApplicationContext
  4. D.Spring bean

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.BeanFactory
  2. B.@Component
  3. C.@Service
  4. D.Spring bean

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

11. Which term means: "an object instantiated, assembled, and managed by the framework's container"?

Junior
  1. A.BeanFactory
  2. B.Spring bean
  3. C.Inversion of Control
  4. D.@Service

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

14. Which term means: "a generic stereotype annotation marking a class for automatic detection during classpath scanning"?

Junior
  1. A.BeanFactory
  2. B.@Component
  3. C.Inversion of Control
  4. D.@Service

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Inversion of Control
  2. B.@Service
  3. C.@Repository
  4. D.Spring bean

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.BeanFactory
  2. B.Inversion of Control
  3. C.@Service
  4. D.@Repository

Answer + AI explanation with Pro

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

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.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers