ExamGecko
Question list
Search
Search

Question 9 - 2V0-72.22 discussion

Report
Export

Which two statements are true concerning constructor injection? (Choose two.)

A.
If there is only one constructor the @Autowired annotation is not required.
Answers
A.
If there is only one constructor the @Autowired annotation is not required.
B.
Constructor injection only allows one value to be injected.
Answers
B.
Constructor injection only allows one value to be injected.
C.
Constructor injection is preferred over field injection to support unit testing.
Answers
C.
Constructor injection is preferred over field injection to support unit testing.
D.
Construction injection can be used with multiple constructors without @Autowired annotation.
Answers
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.
Answers
E.
Field injection is preferred over constructor injection from a unit testing standpoint.
Suggested answer: C, E
asked 16/09/2024
Charles Smith
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first