VMware Professional Develop VMware Spring 2V0-72.22 Question # 14 Topic 2 Discussion

VMware Professional Develop VMware Spring 2V0-72.22 Question # 14 Topic 2 Discussion

2V0-72.22 Exam Topic 2 Question 14 Discussion:
Question #: 14
Topic #: 2

Refer to the exhibit.

2V0-72.22 Question 14

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.


Get Premium 2V0-72.22 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.