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
    :Mar 26, 2025

Oracle Oracle Certifications 1Z0-808 Questions & Answers

  • Question 161:

    Given the code fragment:

    Which code fragment prints blue, cyan, ?

    A. Option A

    B. Option B

    C. Option C

    D. Option D

  • Question 162:

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

    Given:

    A. ns = 50 S = 125 ns = 125 S = 125 ns = 100 S = 125

    B. ns = 50 S = 125 ns = 125 S = 125 ns = 0 S = 125

    C. ns = 50 S = 50 ns = 125 S = 125 ns = 100 S = 100

    D. ns = 50 S = 50 ns = 125 S = 125 ns = 0 S = 125

  • Question 164:

    Which of the following exception will be thrown due to the statement given here?

    int array[] = new int[-2];

    A. NullPointerException

    B. NegativeArraySizeException

    C. ArrayIndexOutOfBoundsException

    D. IndexOutOfBoundsException

    E. This statement does not cause any exception.

  • Question 165:

    Given:

    And given the code fragment:

    What is the result?

    A. 4W 100 Auto 4W 150 Manual

    B. Null 0 Auto 4W 150 Manual

    C. Compilation fails only at line n1

    D. Compilation fails only at line n2

    E. Compilation fails at both line n1 and line n2

  • Question 166:

    Given the code fragment:

    Which statement is true?

    A. After line 8, three objects are eligible for garbage collection

    B. After line 8, two objects are eligible for garbage collection

    C. After line 8, one object is eligible for garbage collection

    D. After line 8, none of the objects are eligible for garbage collection

  • Question 167:

    Given:

    class Cake {

    int model;

    String flavor;

    Cake() {

    model = 0;

    flavor = "Unknown";

    }

    }

    public class Test {

    public static void main(String[] args) {

    Cake c = new Cake();

    bake1(c);

    System.out.println(c.model + " " + c.flavor);

    bake2(c);

    System.out.println(c.model + " " + c.flavor);

    }

    public static Cake bake1(Cake c) {

    A. flavor = "Strawberry";

    B. model = 1200; return c; } public static void bake2(Cake c) {

    C. flavor = "Chocolate";

    D. model = 1230; return; } } What is the result?

    E. 0 unknown 0 unknown

    F. 1200 Strawberry 1200 Strawberry

    G. 1200 Strawberry 1230 Chocolate

    H. Compilation fails

  • Question 168:

    Given the code fragment: System.out.println(2 + 4 * 9 - 3); //Line 21 System.out.println((2 + 4) * 9 - 3); // Line 22 System.out.println(2 + (4 * 9) - 3); // Line 23 System.out.println(2 + 4 * (9 - 3)); // Line 24 System.out.println((2 + 4 * 9) - 3); // Line 25 Which line of codes prints the highest number?

    A. Line 21

    B. Line 22

    C. Line 23

    D. Line 24

    E. Line 25

  • Question 169:

    Given:

    public class MainMethod {

    void main() {

    System.out.println("one");

    }

    static void main(String args) {

    System.out.println("two");

    }

    public static void main(String[] args) {

    System.out.println("three");

    }

    void mina(Object[] args) {

    System.out.println("four");

    }

    }

    What is printed out when the program is excuted?

    A. one

    B. two

    C. three

    D. four

  • Question 170:

    Given the code fragment:

    What is the result?

    A. A B C

    B. A B C D E

    C. A B D E

    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.