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
    :May 29, 2026

Oracle 1Z0-809 Online Questions & Answers

  • Question 131:

    Given the code fragment:

    Path path1 = Paths.get("/app/./sys/");

    Path res1 = path1.resolve("log");

    Path path2 = Paths.get("/server/exe/");

    Path res1 = path1.resolve("/readme/");

    System.out.println(res1);

    System.out.println(res2);

    What is the result?

    A. /app/sys/log /readme/server/exe
    B. /app/log/sys /server/exe/readme
    C. /app/./sys/log /readme
    D. /app/./sys/log /server/exe/readme

  • Question 132:

    Given the information: Emp table has 10 records. Given the code fragment:

    Which code fragment, inserted at Line n1, helps you determine the number of records in ResultSet?

    A. ResultSetMetaData rsmd = rs.getMetaData(); int totRows = rsmd.getRowCount();
    B. int totRows=0; while(rs.next()){ totRows++; }
    C. rs.last(); int totRows = rs.getRowCount();
    D. rs.last(); int totRows = rs.getRowId(1);

  • Question 133:

    Which two statements are true about synchronization and locks? (Choose two.)

    A. A thread automatically acquires the intrinsic lock on a synchronized statement when executed.
    B. The intrinsic lock will be retained by a thread if return from a synchronized method is caused by an uncaught exception.
    C. A thread exclusively owns the intrinsic lock of an object between the time it acquires the lock and the time it releases it.
    D. A thread automatically acquires the intrinsic lock on a synchronized method's object when entering that method.
    E. Threads cannot acquire intrinsic locks on classes.

  • Question 134:

    Given the code fragment:

    Which is the valid definition of the Course enum?

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

  • Question 135:

    Given the code fragment:

    You have been asked to define the ProductCode class. The definition of the ProductCode class must allow c1 instantiation to succeed and cause a compilation error on c2 instantiation. Which definition of ProductCode meets the requirement?

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

  • Question 136:

    Given the code fragments:

    interface CourseFilter extends Predicate {

    public default boolean test (String str) {

    return str.equals ("Java");

    }

    }

    and

    List strs = Arrays.asList("Java", "Java EE", "Java ME");

    Predicate cf1 = s - > s.length() > 3;

    Predicate cf2 = new CourseFilter() { //line n1

    public boolean test (String s) {

    return s.contains ("Java");

    }

    };

    long c = strs.stream()

    .filter(cf1)

    .filter(cf2 //line n2

    .count();

    System.out.println(c);

    What is the result?

    A. 2
    B. 3
    C. A compilation error occurs at line n1.
    D. A compilation error occurs at line n2.

  • Question 137:

    Which class definition compiles?

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

  • Question 138:

    Given the code fragment:

    BiFunction val = (t1, t2) -> t1 + t2; //line n1

    System.out.println(val.apply(10, 10.5));

    What is the result?

    A. 20
    B. 20.5
    C. A compilation error occurs at line n1.
    D. A compilation error occurs at line n2.

  • Question 139:

    Given:

    Book.java:

    public class Book {

    private String read(String bname) { return "Read" + bname }

    }

    EBook.java:

    public class EBook extends Book {

    public class String read (String url) { return "View" + url }

    }

    Test.java:

    public class Test {

    public static void main (String[] args) {

    Book b1 = new Book();

    b1.read("Java Programing");

    Book b2 = new EBook();

    b2.read("http://ebook.com/ebook");

    }

    }

    What is the result?

    A. Read Java Programming View http:/ ebook.com/ebook
    B. Read Java Programming Read http:/ ebook.com/ebook
    C. The EBook.java file fails to compile.
    D. The Test.java file fails to compile.

  • Question 140:

    Given the code fragment:

    List str = Arrays.asList ("my", "pen", "is", "your', "pen");

    Predicate test = s -> {

    int i = 0;

    boolean result = s.contains ("pen");

    System.out.print(i++) + ":");

    return result;

    };

    str.stream()

    .filter(test)

    .findFirst()

    .ifPresent(System.out ::print);

    What is the result?

    A. 0 : 0 : pen
    B. 0 : 1 : pen
    C. 0 : 0 : 0 : 0 : 0 : pen
    D. 0 : 1 : 2 : 3 : 4 :
    E. A compilation error occurs.

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.