nerdexam
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)
  • A
    3% (1)
  • B
    78% (25)
  • D
    13% (4)
  • E
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice