1Z0-816 Exam Details

  • Exam Code
    :1Z0-816
  • Exam Name
    :Java SE 11 Programmer II
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :80 Q&As
  • Last Updated
    :Jun 26, 2026

Oracle 1Z0-816 Online Questions & Answers

  • Question 71:

    Which interface in the java.util.function package will return a void return type?

    A. Supplier
    B. Predicate
    C. Function
    D. Consumer

  • Question 72:

    Given:

    and checkQuality(QUALITY.A); and

    Which code fragment can be inserted into the switch statement to print Best?

    A. QUALITY.A.ValueOf()
    B. A
    C. A.toString()
    D. QUALITY.A

  • Question 73:

    Given:

    and

    Which code fragment on line 1 makes the s1 set contain the names of all employees born before January 1, 1989?

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

  • Question 74:

    Which interface in the java.util.function package can return a primitive type?

    A. ToDoubleFunction
    B. Supplier
    C. BiFunction
    D. LongConsumer

  • Question 75:

    Given:

    Which statement is equivalent to line 1?

    A. double totalSalary = list.stream().map(e -> e.getSalary() * ratio).reduce(bo).ifPresent (p -> p.doubleValue());
    B. double totalSalary = list.stream().mapToDouble(e -> e.getSalary() * ratio).sum;
    C. double totalSalary = list.stream().map(Employee::getSalary * ratio).reduce(bo).orElse(0.0);
    D. double totalSalary = list.stream().mapToDouble(e -> e.getSalary() * ratio).reduce(starts, bo);

  • Question 76:

    Given:

    When is the readObject method called?

    A. before this object is deserialized
    B. after this object is deserialized
    C. before this object Is serialized
    D. The method is never called.
    E. after this object is serialized

  • Question 77:

    Given:

    What is the result?

    A. The compilation fails at line 9.
    B. The compilation fails at line 2.
    C. Hello World
    D. The compilation fails at line 8.

  • Question 78:

    Given:

    Which one is correct?

    A. An IllegalThreadStateException is thrown at run time.
    B. Three threads are created.
    C. The compilation fails.
    D. Four threads are created.

  • Question 79:

    Which code is correct?

    A. Runnable r = "Message" -> System.out.println();
    B. Runnable r = () -> System.out::print;
    C. Runnable r = () -> {System.out.println("Message");};
    D. Runnable r = -> System.out.println("Message");
    E. Runnable r = {System.out.println("Message")};

  • Question 80:

    Given:

    When run and all three files exist, what is the state of each reader on Line 1?

    A. All three readers are still open.
    B. All three readers have been closed.
    C. The compilation fails.
    D. Only reader1 has been closed.

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