nerdexam
Oracle

1Z0-850 · Question #10

Click the Exhibit button. Which code correctly implements the association between A and B?

The correct answer is B. class A { private B b; }. See the full explanation below for the reasoning.

Question

Click the Exhibit button. Which code correctly implements the association between A and B?

Options

  • Aclass A { private B[] b; }
  • Bclass A { private B b; }
  • Cclass A { class B {} private A[] a; }
  • Dclass A { class B {} private A a; }
  • Eclass A { private B b; } class B { private A[] a; }
  • Fclass A { private B b; } class B {}

How the community answered

(45 responses)
  • A
    2% (1)
  • B
    76% (34)
  • C
    2% (1)
  • D
    16% (7)
  • F
    4% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-850 Practice