nerdexam
Oracle

1Z0-898 · Question #37

A developer wants to model the grades for a student as a Map<course, integer>. Assume that Student and Course are entitles, and that grades are modelled by integers. Which of the following two…

The correct answer is A. The developer can model the grades as an element collection in the Student entity. D. The mapping for the value of the map can be specified by the @Column annotation. See the full explanation below for the reasoning.

Question

A developer wants to model the grades for a student as a Map<course, integer>. Assume that Student and Course are entitles, and that grades are modelled by integers. Which of the following two statements are correct? (Choose two)

Options

  • AThe developer can model the grades as an element collection in the Student entity.
  • BThe developer can model the grades as a one To Many relationship in the Student entity.
  • CThe mapping for the key of the map can be specified by the @MapKeycolumn annotation.
  • DThe mapping for the value of the map can be specified by the @Column annotation.

How the community answered

(29 responses)
  • A
    76% (22)
  • B
    17% (5)
  • C
    7% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-898 Practice