Consider the following complete configuration sample:
< bean class="rewards.internal.RewardNetworkImpl" >
< property name="accountRepository" ref="accountRepository" />
< /bean>
< bean class="rewards.internal.account.JdbcAccountRepository"/>
Which of the following statements is true? (Select one)
A) This configuration is correct
B) This configuration is not valid because the first bean should have an id. Its value should be "rewardNetwork".
C) This configuration is not valid because the second bean should have an id. Its value should be "accountRepository".
D) Both (b) and (c)
Correct Answer:
Verified
Q10: import com.springsource.service.*; ... @Configuration public class AppConfig
Q11: Which of the following statements is NOT
Q12: Using Spring AOP, which of the following
Q13: Which of the following statements about Spring's
Q14: What is true regarding bean definition inheritance?
A)
Q16: @Configuration public class AppConfig { @Bean public
Q17: Which of the following statements best describes
Q18: What is the primary purpose of bean
Q19: Which of the following statements about the
Q20: Which of the following statements is NOT
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents