VMware 2V0-72.22 Exam - Topic 11 Question 67 Discussion
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.
Matilda
8 months agoMerilyn
8 months agoJamal
8 months agoZana
8 months agoMargery
9 months agoKandis
9 months agoLynda
9 months agoDell
9 months agoBrandon
9 months agoHollis
9 months agoLeonor
9 months agoCarman
9 months agoKeneth
10 months agoMitsue
1 year agoFiliberto
1 year agoGenevieve
1 year agoWilda
1 year agoAnthony
1 year agoBecky
1 year agoJoana
1 year agoSelma
1 year agoMargurite
1 year agoMyrtie
1 year agoHelene
1 year agoAnnita
1 year agoSkye
1 year agoAnnamaria
1 year agoSkye
1 year ago