1
JavaIntermediate#spring
IoC is a principle where object creation and dependency management are delegated to a container (the Spring IoC container) rather than being handled manually by the code, enabling loose coupling and easier testing.
@Component
class EmailService {}
@Component
class NotificationService {
@Autowired EmailService emailService; // Spring container injects this
}