1Z0-809 Exam Details

  • Exam Code
    :1Z0-809
  • Exam Name
    :Java SE 8 Programmer II
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :207 Q&As
  • Last Updated
    :Jul 09, 2026

Oracle 1Z0-809 Online Questions & Answers

  • Question 1:

    Given the code fragment:

    What is the result?

    A. A compilation error occurs at line n1.
    B. Logged out at: 2015-01-12T21:58:19.880Z
    C. Can't logout
    D. Logged out at: 2015-01-12T21:58:00Z

  • Question 2:

    Given:

    Which code fragment can be inserted to print: Peacock is eating?

    A. BirdInt b = new::Bird("Peacock");
    B. BirdInt b1 = Bird::new; Bird b = b1.getBird("Peacock");
    C. BirdInt b = new Bird ("Peacock");
    D. Bird b = Bird::new("Peacock");

  • Question 3:

    Given the code fragment:

    List listVal = Arrays.asList("Joe", "Paul", "Alice", "Tom");

    System.out.println (

    // line n1

    );

    Which code fragment, when inserted at line n1, enables the code to print the count of string elements whose length is greater than three?

    A. listVal.stream().filter(x -> x.length()>3).count()
    B. listVal.stream().map(x -> x.length()>3).count()
    C. listVal.stream().peek(x -> x.length()>3).count().get()
    D. listVal.stream().filter(x -> x.length()>3).mapToInt(x -> x).count()

  • Question 4:

    Given the code fragment:

    ZonedDateTime depart = ZonedDateTime.of(2015, 1, 15, 1, 0, 0, 0, ZoneID.of("UTC-7")); ZonedDateTime arrive = ZonedDateTime.of(2015, 1, 15, 9, 0, 0, 0, ZoneID.of("UTC-5")); long hrs = ChronoUnit.HOURS.between(depart, arrive); //line n1 System.out.println("Travel time is" + hrs + "hours");

    What is the result?

    A. Travel time is 4 hours
    B. Travel time is 6 hours
    C. Travel time is 8 hours
    D. An exception is thrown at line n1.

  • Question 5:

    Given the code fragment:

    What is the result ?

    A. [X] [X, X] [X, X, X] [X, X, X, X] B. [X, X]
    C. [X] [X, X] [X, X, X]
    D. [X, X] [X, X, X, X]

  • Question 6:

    Given the code fragment:

    public static void main (String[] args) throws IOException {

    BufferedReader brCopy = null;

    try (BufferedReader br = new BufferedReader (new FileReader("employee.txt"))) { //

    line n1

    br.lines().forEach(c -> System.out.println(c));

    brCopy = br; //line n2

    }

    brCopy.ready(); //line n3;

    }

    Assume that the ready method of the BufferedReader, when called on a closed BufferedReader, throws an exception, and employee.txt is accessible and contains valid text.

    What is the result?

    A. A compilation error occurs at line n3.
    B. A compilation error occurs at line n1.
    C. A compilation error occurs at line n2.
    D. The code prints the content of the employee.txt file and throws an exception at line n3.

  • Question 7:

    What is the result?

    A. A compilation error occurs at line 7.
    B. 100
    C. A compilation error occurs at line 8.
    D. A compilation error occurs at line 15.

  • Question 8:

    Given the code fragment:

    public class Foo {

    public static void main (String [ ] args) {

    Map unsortMap = new HashMap< > ( );

    unsortMap.put (10, "z");

    unsortMap.put (5, "b");

    unsortMap.put (1, "d");

    unsortMap.put (7, "e");

    unsortMap.put (50, "j");

    Map treeMap = new TreeMap (new

    Comparator ( ) {

    @Override public int compare (Integer o1, Integer o2) {return o2.compareTo (o2); } } );

    treeMap.putAll (unsortMap);

    for (Map.Entry entry : treeMap.entrySet () ) {

    System.out.print (entry.getValue () + " ");

    }

    }

    }

    What is the result?

    A. A compilation error occurs.
    B. d b e z j
    C. j z e b d
    D. z b d e j

  • Question 9:

    Given:

    public enum USCurrency {

    PENNY (1),

    NICKLE(5),

    DIME (10),

    QUARTER(25);

    private int value;

    public USCurrency(int value) {

    this.value = value;

    }

    public int getValue() {return value;}

    }

    public class Coin {

    public static void main (String[] args) {

    USCurrency usCoin =new USCurrency.DIME;

    System.out.println(usCoin.getValue()):

    }

    }

    Which two modifications enable the given code to compile? (Choose two.)

    A. Nest the USCurrency enumeration declaration within the Coin class.
    B. Make the USCurrency enumeration constructor private.
    C. Remove the new keyword from the instantion of usCoin.
    D. Make the getter method of value as a static method.
    E. Add the final keyword in the declaration of value.

  • Question 10:

    Which two code blocks correctly initialize a Locale variable? (Choose two.)

    A. Locale loc1 = "UK";
    B. Locale loc2 = Locale.getInstance("ru");
    C. Locale loc3 = Locale.getLocaleFactory("RU");
    D. Locale loc4 = Locale.UK;
    E. Locale loc5 = new Locale ("ru", "RU");

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