Solved

Given an ApplicationContext Containing Multiple Bean Definitions of a Java

Question 9

Multiple Choice

Given an ApplicationContext containing multiple bean definitions of a Java type "Foo", which of the following @Autowired scenarios will cause the ApplicationContext to FAIL to initialize? Assume that the ApplicationContext is configured to process the @Autowired annotations. (Select one)


A) @Autowired public void setFoo(Foo aFoo) {}
B) @Autowired private Foo foo;
C) Both a and b
D) Neither a or b

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