• IoC (Inversion of Control):
    • Instead of creating and wiring objects, Spring’s container creates them and manages how they connect.
  • DI (Dependency Injection):
    • Spring gives (injects) the objects your class depends on, rather than your class doing new internally.
  • Relationship:
    • IoC is the idea/principle;
    • DI is the most common way Spring implements IoC.