READ Free Dumps For Oracle- 1z0-851
Question ID 3683 | Given: |
Option A | A. Compilation fails because of an error in line 3. |
Option B | B. Compilation fails because of an error in line 7. |
Option C | C. Compilation fails because of an error in line 9. |
Option D | D. If you define D e = new E(), then e.bMethod() invokes the version of bMethod() defined in Line |
Option E | E. If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in |
Option F | F. If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 9. |
Correct Answer | F |
Question ID 3684 | 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.) |
Option A | A. class Widget { Sprocket s; } |
Option B | B. class Widget { } |
Option C | C. class Widget { Sprocket s1; Spring s2; } class Gadget extends Widget { } |
Option D | D. class Gadget { Spring s; } |
Option E | E. class Gadget { } |
Option F | F. class Gadget { Spring s1; Sprocket s2; } class Widget extends Gadget{ } |
Correct Answer | A,C |