Broadcom-VMware
2V0-72.22 · Question #52
Which two statements about the @Autowired annotation are true? (Choose two.)
The correct answer is 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. See the full explanation below for the reasoning.
Question
Which two statements about the @Autowired annotation are true? (Choose two.)
Options
- A@Autowired fields are injected after any config methods are invoked.
- BMultiple arguments can be injected into a single method using @Autowired.
- CBy default, if a dependency cannot be satisfied with @Autowired, Spring throws a
- DIf @Autowired is used on a class, field injection is automatically performed for all
- E@Autowired can be used to inject references into BeanPostProcessor and
How the community answered
(32 responses)- A3% (1)
- B78% (25)
- D13% (4)
- E6% (2)
Community Discussion
No community discussion yet for this question.