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