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

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

    Given the code fragment:

    and the requirements of the application:

    1.

    It must display the menu.

    2.

    It must print the option selected.

    3.

    It must continue its execution till it reads `0'.

    Which code fragment can be used to meet the requirements?

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

  • Question 143:

    Given: What is the result?

    A. A B
    B. A C
    C. C C
    D. A ClassCastException is thrown only at line n1.
    E. A ClassCastException is thrown only at line n2.

  • Question 144:

    Given the class definitions:

    And the code fragment of the main() method,

    What is the result?

    A. Java Java Java
    B. Java Jeve va
    C. Java Jeve ve
    D. Compilation fails

  • Question 145:

    Given the code fragment:

    What is the result?

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

  • Question 146:

    Given:

    class Sports {

    int num_players;

    String name, ground_condition;

    Sports(int np, String sname, String sground){

    num_players = np;

    name = sname;

    ground_condition = sground;

    }

    }

    class Cricket extends Sports {

    int num_umpires;

    int num_substitutes;

    Which code fragment can be inserted at line //insert code here to enable the code to compile?

    A. Cricket() { super(11, "Cricket", "Condidtion OK"); num_umpires =3; num_substitutes=2; }
    B. Cricket() { super.ground_condition = "Condition OK"; super.name="Cricket"; super.num_players = 11; num_umpires =3; num_substitutes=2; }
    C. Cricket() { this(3,2); super(11, "Cricket", "Condidtion OK"); } Cricket(int nu, ns) { this.num_umpires =nu; this.num_substitutes=ns; }
    D. Cricket() { this.num_umpires =3; this.num_substitutes=2; super(11, "Cricket", "Condidtion OK"); }

  • Question 147:

    Give: What is the result?

    A. 1525
    B. 13
    C. Compilation fails
    D. An exception is thrown at runtime
    E. The program fails to execute due to runtime error

  • Question 148:

    Given the code fragment:

    What is the result?

    A. Invalid Name
    B. Invalid Name omas
    C. Invalid Name omas null null
    D. omas ter seph

  • Question 149:

    Given:

    import java.util.*;

    public class Ref {

    public static void main(String[] args) {

    StringBuilder s1 = new StringBuilder("Hello Java!");

    String s2 = s1.toString();

    List lst = new ArrayList();

    lst.add(s2);

    System.out.println(s1.getClass());

    System.out.println(s2.getClass());

    System.out.println(lst.getClass());

    }

    }

    What is the result?

    A. class java.lang.String class java.lang.String class java.util.ArrayList
    B. class java.lang.Object class java.lang. Object class java.util.Collection
    C. class java.lang.StringBuilder class java.lang.String class java.util.ArrayList
    D. class java.lang.StringBuilder class java.lang.String class java.util.List

  • Question 150:

    Given:

    What is the result?

    A. 0:0 100:0
    B. null:0 100:0
    C. 0:0 100:200
    D. null:null 100:null

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.