Oracle
1Z0-895 · Question #94
1Z0-895 Question #94: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-895 to reveal the answer and full explanation for question #94. The question stem and answer options stay visible for context.
Question
A developer creates a stateless session bean. This session bean needs data from a remote system. Reading this data takes a long time. Assume that the data will NOT change during the life time of the bean and that the information to connect to the remote system is defined in JNDI. Which statement describes how to manage the data correctly?
Options
- ARead the data in the bean's constructor.
- BThe data can only be read in the bean's business methods.
- CRead the data in a method which is annotated with @PrePassivate.
- DRead the data in a method which is annotated with @PostActivate.
- ERead the data in a method which is annotated with @PostConstruct.
Unlock 1Z0-895 to see the answer
You've previewed enough free 1Z0-895 questions. Unlock 1Z0-895 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.