nerdexam
Oracle

1Z0-809 · Question #15

1Z0-809 Question #15: Real Exam Question with Answer & Explanation

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

Question

Given: public final class Cream { public void prepare() { } } public class Cake extends Cream{ public public void bake(int min, int temp) {} public void mix() {} } public class Shop { private Cake c = new Cake(); private final double discount = 0.25; public void makeReady() { c.bake(10, 120); } } public class Bread extends Cake { public void bake(int minutes, int temperature) {} public void addDroppings() {} } Which statement is true?

Options

  • AA compilation error occurs in Cream.
  • BA compilation error occurs in Cake.
  • CA compilation error occurs in Shop.
  • DA compilation error occurs in Bread
  • EAll classes compile successfully.

Unlock 1Z0-809 to see the answer

You've previewed enough free 1Z0-809 questions. Unlock 1Z0-809 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-809 Practice