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

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

    Given:

    What is the result?

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

  • Question 113:

    Examine the content of App.java:

    Which is true?

    A. The App.class file is stored within the p1 folder. The Test.class file is stored within the p2 sub-folder of p1.
    B. The App class is accessible within the Test class without an import statement.
    C. import p1.App; is used to access the App class within the Test class.
    D. It is optional to have the package statement as the first line of class definitions.

  • Question 114:

    Given:

    public class Test {

    public static void main(String[] args) {

    int day = 1;

    switch (day) {

    case "7": System.out.print("Uranus");

    case "6": System.out.print("Saturn");

    case "1": System.out.print("Mercury");

    case "2": System.out.print("Venus");

    case "3": System.out.print("Earth");

    case "4": System.out.print("Mars");

    case "5": System.out.print("Jupiter");

    }

    }

    }

    Which two modifications, made independently, enable the code to compile and run?

    A. Adding a break statement after each print statement
    B. Adding a default section within the switch code-block
    C. Changing the string literals in each case label to integer
    D. Changing the type of the variable day to String
    E. Arranging the case labels in ascending order

  • Question 115:

    Given the code fragments:

    And:

    Which statement is true?

    A. After line 11, three objects are eligible for garbage collection.
    B. After line 11, two objects are eligible for garbage collection.
    C. After line 11, one object is eligible for garbage collection.
    D. After line 11, none of the objects are eligible for garbage collection.

  • Question 116:

    Given the code fragment:

    What is the result?

    A. Element 0 Element 1
    B. Null element 0 Null element 1
    C. Null Null
    D. A NullPointerException is thrown at runtime.

  • Question 117:

    Which three statements are true about exception handling? (Choose three.)

    A. Only unchecked exceptions can be rethrown.
    B. All subclasses of the RuntimeException class are recoverable.
    C. The parameter in a catch block is of Throwable type.
    D. All subclasses of the RuntimeException class must be caught or declared to be thrown.
    E. All subclasses of the Exception class except the RuntimeException class are checked exceptions.
    F. All subclasses of the Error class are checked exceptions and are recoverable.

  • Question 118:

    Given the code fragment:

    What is the result?

    A. 2 4
    B. 0 2 4 6
    C. 0 2 4
    D. Compilation fails

  • Question 119:

    Given:

    class MarksOutOfBoundsException extends IndexOutOfBoundsException { }

    public class GradingProcess {

    void verify(int marks) throws IndexOutOfBoundsException {

    if (marks > 100) {

    throw new MarksOutOfBoundsException();

    }

    if (marks > 50) {

    System.out.print("Pass");

    } else {

    System.out.print("Fail");

    }

    }

    public static void main(String[] args) {

    int marks = Integer.parseInt(args[2]);

    try {

    new GradingProcess().verify(marks));

    } catch(Exception e) {

    System.out.print(e.getClass());

    }

    }

    }

    And the command line invocation:

    Java grading process 89 50 104

    What is the result?

    A. Pass
    B. Fail
    C. Class MarketOutOfBoundsException
    D. Class IndexOutOfBoundsException
    E. Class Exception

  • Question 120:

    Given:

    What is the result?

    A. String main 1
    B. An exception is thrown at runtime
    C. String main 1 2 3
    D. String main 123

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.