nerdexam
Oracle

1Z0-860 · Question #57

The Java Persistent API defines certain rules for persistent entities. These rules are required by the persistent provider to manage entities at runtime. Which statement is correct, assuming NO…

The correct answer is D. A field without a transient modifier must be annotated as (©Transient to NOT be stored in the database. See the full explanation below for the reasoning.

Question

The Java Persistent API defines certain rules for persistent entities. These rules are required by the persistent provider to manage entities at runtime. Which statement is correct, assuming NO mapping descriptor is used?

Options

  • AEntities must extenda persistent base class.
  • BEntities must implement the interface PersistentEntity to be managed by the persistent provider.
  • CAfield withoutatransient modifier mustbeannotated as©Persistent tobe stored in the database.
  • DA field without a transient modifier must be annotated as (©Transient to NOT be stored in the database.

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    15% (4)
  • C
    7% (2)
  • D
    74% (20)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice