nerdexam
Oracle

1Z0-860 · Question #43

According to the Java Persistence API, a managed entity instance X becomes removed by invoking the remove method on it or when it is a target of a cascaded remove operation. Which statement is true?

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

Question

According to the Java Persistence API, a managed entity instance X becomes removed by invoking the remove method on it or when it is a target of a cascaded remove operation. Which statement is true?

Options

  • AAfter an entity has been removed its state will be restored to the Java defaults.
  • BIf a detached entity Y references Xthe HlegalStateException will be thrown.
  • CIf X is a new entity the remove operation is cascaded to entities referenced by X.
  • DA removed entity X will be guaranteed to be removed from the database when the remove 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.

Full 1Z0-860 Practice