nerdexam
Oracle

1Z0-851 · Question #32

1Z0-851 Question #32: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #32. The question stem and answer options stay visible for context.

Question

Given that: Gadget has-a Sprocket and Gadget has-a Spring and Gadget is-a Widget and Widget has-a Sprocket Which two code fragments represent these relationships? (Choose two.)

Options

  • Aclass Widget { Sprocket s; } class Gadget extends Widget { Spring s; }
  • Bclass Widget { } class Gadget extends Widget { Spring s1; Sprocket s2; }
  • Cclass Widget { Sprocket s1; Spring s2; } class Gadget extends Widget { }
  • Dclass Gadget { Spring s; } class Widget extends Gadget{ Sprocket s; }
  • Eclass Gadget { } class Widget extends Gadget{ Sprocket s1; Spring s2; }
  • Fclass Gadget { Spring s1; Sprocket s2; } class Widget extends Gadget{ }

Unlock 1Z0-851 to see the answer

You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-851 Practice
Given that: Gadget has-a Sprocket and Gadget has-a Spring and... | 1Z0-851 Q#32 Answer | NerdExam