Broadcom-VMware
2V0-72.22PSE · Question #88
2V0-72.22PSE Question #88: Real Exam Question with Answer & Explanation
The correct answer is B. Annotate the callback method with @PreDestroy.. See the full explanation below for the reasoning.
Question
Which is the correct approach to register for a bean destruction callback?
Options
- AAnnotate the callback method with @PostDestroy.
- BAnnotate the callback method with @PreDestroy.
- CAdd the @Lazy annotation to the bean configuration.
- DConfigure the bean instance to use prototype scope.
Community Discussion
No community discussion yet for this question.