Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 61 discussion

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

Refer to the exhibit.



How can a Spring Bean be created from this LegacySingleton class?

  • A. Call LegacySingleton.getInstance() from within a @Bean method and return the instance.
  • B. Return an instance of LegacySingleton using the new keyword from a @Bean method.
  • C. It is not possible without modifying the LegacySingleton class, the constructor must be public.
  • D. Modify the LegacySingleton class by adding the @Autowired annotation to the instance variable.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
saJAva
5 months, 2 weeks ago
Selected Answer: A
correct
upvoted 2 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 ...