Which two statements are true concerning constructor injection?

Which two statements are true concerning constructor injection? (Choose two.)
A. If there is only one constructor the @Autowired annotation is not required.
B. Constructor injection only allows one value to be injected.
C. Constructor injection is preferred over field injection to support unit testing.
D. Construction injection can be used with multiple constructors without @Autowired annotation.
E. Field injection is preferred over constructor injection from a unit testing standpoint.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.