Which two statements about the @Autowired annotation are true?

Which two statements about the @Autowired annotation are true? (Choose two.)
A. @Autowired fields are injected after any config methods are invoked.
B. Multiple arguments can be injected into a single method using @Autowired.
C. By default, if a dependency cannot be satisfied with @Autowired, Spring throws a RuntimeException.
D. If @Autowired is used on a class, field injection is automatically performed for all dependencies.
E. @Autowired can be used to inject references into BeanPostProcessor and BeanFactoryPostProcessor.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.