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)- A2% (1)
- B76% (34)
- C2% (1)
- D16% (7)
- F4% (2)
Community Discussion
No community discussion yet for this question.