nerdexam
Oracle

1Z0-898 · Question #61

1Z0-898 Question #61: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-898 to reveal the answer and full explanation for question #61. The question stem and answer options stay visible for context.

Question

Which of the following Criteria query snippets demonstrates the correct way to create and execute strongly typed queries? Assume that cb references an instance of the CriteriaBuilder interface and em references an EntityManager instance.

Options

  • ACriteriaQuery <office> cq = cb.createQuery (Office.class); . . .
  • BCriteriaQuery cq = cb.createQuery (Office.class)
  • CCriteriaQuery<office> cq = em.createQuery (cq, office.class); . . .
  • DCriteriaQuery <office> cq = cb.createQuery (Office.class); . . .

Unlock 1Z0-898 to see the answer

You've previewed enough free 1Z0-898 questions. Unlock 1Z0-898 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.

Full 1Z0-898 Practice