exam questions

Exam 2V0-72.22 All Questions

View all questions & answers for the 2V0-72.22 exam

Exam 2V0-72.22 topic 1 question 55 discussion

Actual exam question from VMware's 2V0-72.22
Question #: 55
Topic #: 1
[All 2V0-72.22 Questions]

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

  • A. A Spring bean can be explicitly created by annotating methods or fields by @Autowired.
  • B. A Spring bean can be implicitly created by annotating the class with @Component and using the component-scanner to scan its package.
  • C. A Spring bean can be implicitly created by annotating the class with @Bean and using the component-scanner to scan its package.
  • D. A Spring bean can be explicitly created using @Bean annotated methods within a Spring configuration class.
  • E. A Spring bean can be explicitly created by annotating the class with @Autowired.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Tolo01
7 months, 2 weeks ago
Selected Answer: BD
B and D
upvoted 4 times
...
rhuanca
11 months, 3 weeks ago
why not B and D ? @Autowired is used for dependency injection so E from my point of view is not correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago