Solved

ClientService Service = ApplicationContext

Question 5

Multiple Choice

ClientService service = applicationContext.getBean(ClientService.class) Which statement is true with regards to the above example? (select one)


A) It returns the bean called "ClientService"
B) It returns a bean of the type ClientService (regardless of its id or name)
C) This syntax is not valid because the bean id must be specified as a method param
D) This syntax is not valid because the result of the getBean method should be explicitely cast into ClientService

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