Solved

@Configuration Public Class AppConfig {     @Bean     Public ClientService ClientService()

Question 16

Multiple Choice

@Configuration public class AppConfig {     @Bean     public ClientService clientService()
{         ClientServiceImpl clientService = new ClientServiceImpl() ;         
ClientService.addClientDao(new ClientDao() ) ;         
Return clientService;     }
In the example above, which statement is NOT true with regards to Spring Java configuration? (select one)


A) The declared bean is a singleton by default
B) This bean might be wrapped by a proxy
C) This bean cannot use a method starting with "add" to inject a dependency
D) The bean is of type 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