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:
Verified
Q6: Which of the following statements about use
Q7: Which of the following statements is NOT
Q8: Two beans of type MyBean are defined
Q9: Given an ApplicationContext containing multiple bean definitions
Q10: import com.springsource.service.*; ... @Configuration public class AppConfig
Q12: Using Spring AOP, which of the following
Q13: Which of the following statements about Spring's
Q14: What is true regarding bean definition inheritance?
A)
Q15: Consider the following complete configuration sample:
< bean
Q16: @Configuration public class AppConfig { @Bean public
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents