nerdexam
Broadcom-VMware

2V0-72.22 · Question #25

Which two statements are true regarding bean creation? (Choose two.)

The correct answer is B. A Spring bean can be implicitly created by annotating the class with @Component and using D. A Spring bean can be explicitly created using @Bean annotated methods within a Spring. See the full explanation below for the reasoning.

Question

Which two statements are true regarding bean creation? (Choose two.)

Options

  • AA Spring bean can be explicitly created by annotating methods or fields by @Autowired.
  • BA Spring bean can be implicitly created by annotating the class with @Component and using
  • CA Spring bean can be implicitly created by annotating the class with @Bean and using the
  • DA Spring bean can be explicitly created using @Bean annotated methods within a Spring
  • EA Spring bean can be explicitly created by annotating the class with @Autowired.

How the community answered

(42 responses)
  • A
    7% (3)
  • B
    76% (32)
  • C
    14% (6)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice