nerdexam
Exams1Z0-803Questions#225
Oracle

1Z0-803 · Question #225

1Z0-803 Question #225: Real Exam Question with Answer & Explanation

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

Question

Given: public class SuperTest { public static void main(String[] args) { statement1 statement2 statement3 } } class Shape { public Shape() { System.out.println("Shape: constructor"); } public void foo() { System.out.println("Shape: foo"); } } class Square extends Shape { public Square() { super(); } public Square(String label) { System.out.println("Square: constructor"); } public void foo() { super.foo(); } public void foo(String label) { System.out.println("Square: foo"); } } } } What should statement1, statement2, and statement3, be respectively, in order to produce the result? Shape: constructor Square: foo Shape: foo

Options

  • ASquare square = new Square ("bar");
  • BSquare square = new Square ("bar");
  • CSquare square = new Square ();
  • DSquare square = new Square ();
  • ESquare square = new Square ();
  • FSquare square = new Square();

Unlock 1Z0-803 to see the answer

You've previewed enough free 1Z0-803 questions. Unlock 1Z0-803 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-803 Practice
Given: public class SuperTest { public static void main(String... | 1Z0-803 Q#225 Answer | NerdExam