1Z0-803 Exam Details

  • Exam Code
    :1Z0-803
  • Exam Name
    :Java SE 7 Programmer I
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :216 Q&As
  • Last Updated
    :Oct 18, 2021

Oracle 1Z0-803 Online Questions & Answers

  • Question 211:

    Given: 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

    A. Square square = new Square ("bar"); square.foo ("bar"); square.foo();
    B. Square square = new Square ("bar"); square.foo ("bar"); square.foo ("bar");
    C. Square square = new Square (); square.foo (); square.foo(bar);
    D. Square square = new Square (); square.foo (); square.foo("bar");
    E. Square square = new Square (); square.foo (); square.foo ();
    F. Square square = new Square(); square.foo("bar"); square.foo();

  • Question 212:

    Given:

    public class MyClass {

    public static void main(String[] args) {

    while (int ii = 0; ii < 2) {

    ii++;

    System.out.println("ii = " + ii);

    }

    }

    }

    What is the result?

    A. ii = 1 ii = 2
    B. Compilation fails
    C. The program prints nothing
    D. The program goes into an infinite loop with no output
    E. The program goes to an infinite loop outputting: ii = 1 ii = 1

  • Question 213:

    Given the code fragment:

    for (int ii = 0; ii < 3;ii++) {

    int count = 0;

    for (int jj = 3; jj > 0; jj--) {

    if (ii == jj) {

    ++count;

    break;

    }

    }

    System.out.print(count);

    continue;

    }

    What is the result?

    A. 011
    B. 012
    C. 123
    D. 000

  • Question 214:

    Given the code in a file Traveler.java:

    And the commands:

    Javac Traveler.java Java Traveler Java Duke What is the result?

    A. Happy Journey! Duke
    B. Happy Journey! Java
    C. An exception is thrown at runtime
    D. The program fails to execute due to a runtime error

  • Question 215:

    Given:

    What is the result?

    A. 2 4 6 8 10 12
    B. 2 4 6 8 10 12 14
    C. Compilation fails
    D. The program prints multiple of 2 infinite times
    E. The program prints nothing

  • Question 216:

    Given:

    public class TestLoop1 {

    public static void main(String[] args) {

    int a = 0, z=10;

    while (a < z) {

    a++;

    --z;

    }

    System.out.print(a + " : " + z);

    }

    }

    What is the result?

    A. 5 : 5
    B. 6 : 4
    C. 6 : 5
    D. 5 : 4

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-803 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.