Exam4Training

Select which statement is true with respect to constructor injection with Spring (select one)

Select which statement is true with respect to constructor injection with Spring (select one)
A . Multiple parameters can be dependency injected into a constructor
B . Using XML configuration, the constructor-arg element may be omitted if the constructor requires a single parameter
C . One single bean cannot mix constructor injection with setter injection
D . All of the above

Answer: A

Exit mobile version