nerdexam
Oracle

1Z0-860 · Question #145

Given: 11.〦ntity public class X{ 12. @ld int id; 13. Y y; 14.} A public class Y with NO Java Persistence annotations is defined in the same package. Which statement is correct about these classes if…

The correct answer is A. Class Y must be serializable. See the full explanation below for the reasoning.

Question

Given: 11.〦ntity public class X{ 12. @ld int id; 13. Y y; 14.} A public class Y with NO Java Persistence annotations is defined in the same package. Which statement is correct about these classes if NO other annotations and mapping descriptors are provided?

Options

  • AClass Y must be serializable.
  • BClass Y must be marked as an entity.
  • CThe entity X is not defined correctly.The field y must be marked as @Lob.
  • DClass Y must be accessed by a persistence application through a public interface.

How the community answered

(23 responses)
  • A
    83% (19)
  • B
    9% (2)
  • C
    4% (1)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice