ExamGecko
Question list
Search
Search

Question 25 - 2V0-72.22 discussion

Report
Export

Which two statements about the @Autowired annotation are true? (Choose two.)

A.
@Autowired fields are injected after any config methods are invoked.
Answers
A.
@Autowired fields are injected after any config methods are invoked.
B.
Multiple arguments can be injected into a single method using @Autowired.
Answers
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.
Answers
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.
Answers
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.
Answers
E.
@Autowired can be used to inject references into BeanPostProcessor and BeanFactoryPostProcessor.
Suggested answer: B, E
asked 16/09/2024
Bouchtig, Yassine
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first