Backbase Interview Question

What is the difference between dependency injection and service locators?