Broadcom-VMware
2V0-72.22PSE · Question #89
2V0-72.22PSE Question #89: Real Exam Question with Answer & Explanation
The correct answer is D. The bean is of type clientService and by default will be a Singleton. E. The Java configuration can be profile specific by adding a @Profile annotation.. See the full explanation below for the reasoning.
Question
Refer to the exhibit. AppConfig is a Java configuration class. Which two statements are true? (Choose two.)
Exhibit
Options
- AThe clientService bean declared will have prototype scope by default.
- BThe name of the clientService() method is invalid and will throw an error.
- CThe clientService bean will be lazy initialized the first time accessed.
- DThe bean is of type clientService and by default will be a Singleton.
- EThe Java configuration can be profile specific by adding a @Profile annotation.
Community Discussion
No community discussion yet for this question.
