nerdexam
Oracle

1Z0-860 · Question #94

A developer has obtained a container-managed entity manager in a stateless session bean. Which two statements are correct? (Choose two.)

The correct answer is A. Invoking the flush method without a transaction will throw an exception. C. Invoking the persist method without a transaction will throw an exception. See the full explanation below for the reasoning.

Question

A developer has obtained a container-managed entity manager in a stateless session bean. Which two statements are correct? (Choose two.)

Options

  • AInvoking the flush method without a transaction will throw an exception.
  • BInvoking the clear method without a transaction will throw an exception.
  • CInvoking the persist method without a transaction will throw an exception.
  • DInvoking the find method for an entity that does NOT exist will throw an exception.

How the community answered

(34 responses)
  • A
    74% (25)
  • B
    18% (6)
  • D
    9% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice