Which of the following statements about the @Autowired annotation is NOT true? (select one)

Posted by: Pdfprep Category: CoreSpringV3.2 Tags: , ,

Which of the following statements about the @Autowired annotation is NOT true? (select one)
A . The default behavior is that if a dependency cannot be satisfied with @Autowired, the ApplicationContext will throw a RuntimeException
B . @Autowired is a Spring-specific annotation
C . Multiple arguments can be injected into a single method using @Autowired
D . It cannot be used to annotate fields, only constructors and methods

Answer: D

Leave a Reply

Your email address will not be published.