nerdexam
Oracle

1Z0-860 · Question #143

1Z0-860 Question #143: Real Exam Question with Answer & Explanation

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

Question

A User entity is in a one-to-many relationship with a Book entity. Assume that a developer has a function fetchBook(String title) that fetches a Book entity with the given title title. Also assume that the developer has an entity manager em. Which query can be used to return the user that holds the book titled "Java"?

Options

  • Aem.createQueryfSELECT u FROM User u where :great IN
  • Bbooks.title").setParameter("great","Java")
  • Cem.createQuery("SELECT u FROM User u where :great IN
  • Dbooks"). setParameter("great",fetchBook("Java"))
  • Eem.createQuery("SELECT u FROM User u where :great MEMBER OF
  • Fbooks.title"). setParameter("great" ."Java")
  • Gem.createQuery("SELECT u FROM User u where :great MEMBER OF
  • Hbooks"). setParameter("great",fetchBook("Java"))

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.

Full 1Z0-860 Practice