Spring / Spring interview questions
Difference between the setter and constructor injection in Spring.
Setter injection is flexible than constructor injection because you must remember the type and order of constructor parameter. Also, constructor injection is generally used to inject the mandatory dependency, while setter can be used to inject optional dependency.
More Related questions...