Oracle
1Z0-899 · Question #167
1Z0-899 Question #167: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-899 to reveal the answer and full explanation for question #167. The question stem and answer options stay visible for context.
Question
A servlet class is injected with a JDBC data source. After injection has occurred, the servlet needs to create a cache out of some of the data in the database, so as to improve responsiveness. Which two methods can host the cache creation code? (Choose two)
Options
- AServlet.init()
- BServlet.destroy()
- CA method annotated with @Init
- DA method annotated with @PostConstruct
- EA method annotated with @PreDestroy
- FA method annotated with @Resource
Unlock 1Z0-899 to see the answer
You've previewed enough free 1Z0-899 questions. Unlock 1Z0-899 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.