Solved

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

Question 51

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