Posted by: Pdfprep
Post Date: December 19, 2020
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