Solved

Which of the Following Statements Is NOT True Concerning Setter

Question 11

Multiple Choice

Which of the following statements is NOT true concerning Setter Injection or Constructor Injection? (Select one)


A) Constructor injection is useful when you must have an instance of a dependency class before your component is used
B) Setter injection is useful if a component can provide its own defaults
C) Using the @Autowired annotation, setter injection also works when the setter method is private
D) Using setters promotes immutability

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents