Oracle
1Z0-860 · Question #300
1Z0-860 Question #300: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #300. The question stem and answer options stay visible for context.
Question
A developer is modifying an existing Java EE application that uses the JDBC API to access a database. This code must be used but cannot be changed, and new code needs to be added that uses the Java Persistence API. Both parts of the code will execute in the same JTA transaction. Which method of the EntityManager interface should the new code use to ensure that the data read by JDBC statements includes the state of managed entities?
Options
- ACall refresh on each changed entity.
- BCallflush at the end of each business method.
- CCall find before accessing any managed entity.
- DCalllock at the beginning of each business method.
Unlock 1Z0-860 to see the answer
You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 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.