1Z0-808 Exam Details

  • Exam Code
    :1Z0-808
  • Exam Name
    :Java SE 8 Programmer I
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :385 Q&As
  • Last Updated
    :May 24, 2026

Oracle 1Z0-808 Online Questions & Answers

  • Question 251:

    Given the code fragment:

    Which option represents the state of the num array after successful completion of the outer loop?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 252:

    Given:

    Which code fragment should you use at line n1 to instantiate the dvd object successfully?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 253:

    Given the code fragment:

    What is the result?

    A. 3
    C. Compilation fails.
    D. -1

  • Question 254:

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

    Given the code fragment: What is the result?

    A. 1 2 3 4 followed by an ArrayIndexOutOfBoundsException
    B. 1 2 3
    C. 1 2 3 4
    D. Compilation fails.

  • Question 256:

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

    The protected modifier on a Field declaration within a public class means that the field ______________.

    A. Cannot be modified
    B. Can be read but not written from outside the class
    C. Can be read and written from this class and its subclasses only within the same package
    D. Can be read and written from this class and its subclasses defined in any package

  • Question 258:

    Given:

    public class String1 {

    public static void main(String[] args) {

    String s = "123";

    if (s.length() >2)

    A. concat("456"); for(int x = 0; x
    B. 123
    C. 123xxx
    D. 123456
    E. 123456xxx
    F. Compilation fails

  • Question 259:

    Given:

    abstract class A1 {

    public abstract void m1();

    public void m2() { System.out.println("Green"); }

    }

    abstract class A2 extends A1 {

    public abstract void m3();

    public void m1() { System.out.println("Cyan"); }

    public void m2() { System.out.println("Blue"); }

    }

    public class A3 extends A2 {

    public void m1() { System.out.println("Yellow"); }

    public void m2() { System.out.println("Pink"); }

    public void m3() { System.out.println("Red"); }

    public static void main(String[] args) {

    A2 tp = new A3();

    tp.m1();

    tp.m2();

    tp.m3();

    }

    }

    What is the result?

    A. Yellow Pink Red
    B. Cyan Blue Red
    C. Cyan Green Red
    D. Compilation Fails

  • Question 260:

    Given the code fragment:

    What is the result?

    A. 28false29 true
    B. 285 < 429 true
    C. true true
    D. compilation fails

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-808 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.