Dependency injection
Q1.
What does the Spring IoC container mainly do?
Q2.
Which of the following BEST describes Dependency Injection?
Q3.
Which DI method is most recommended in Spring?
Q4.
What happens if you use 'new' inside your Spring bean class?
Q5.
Which dependency injection type is best for optional dependencies?