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

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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments