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

    Given:

    and

    What is the result?

    A. A NullPointerException is thrown at run time.
    B. The compilation fails.
    C. 1 Null null
    D. 1
    E. A ClassCastException is thrown at run time.

  • Question 12:

    Given:

    Which two are secure serialization of these objects? (Choose two.)

    A. Define the serialPersistentFields array field.
    B. Declare fields transient.
    C. Implement only readResolve to replace the instance with a serial proxy and not writeReplace.
    D. Make the class abstract.
    E. Implement only writeReplace to replace the instance with a serial proxy and not readResolve.

  • Question 13:

    Given:

    public class X { }

    and public final class Y extends X { }

    What is the result of compiling these two classes?

    A. The compilation fails because there is no zero args constructor defined in class X.
    B. The compilation fails because either class X or class Y needs to implement the toString() method.
    C. The compilation fails because a final class cannot extend another class.
    D. The compilation succeeds.

  • Question 14:

    Given:

    Which two are correct? (Choose two.)

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

  • Question 15:

    Given:

    Which option should you choose to enable the code to print Something happened?

    A. Add extends GeneralException on line 1. Add extends Exception on line 2.
    B. Add extends SpecificException on line 1. Add extends GeneralException on line 2.
    C. Add extends Exception on line 1. Add extends Exception on line 2.
    D. Add extends Exception on line 1. Add extends GeneralException on line 2.

  • Question 16:

    Given:

    List list1 = new ArrayList<>();

    list1.add("A");

    list1.add("B");

    List list2 = List.copyOf(list1);

    list2.add("C");

    List> list3 = List.of(list1, list2);

    System.out.println(list3);

    What is the result?

    A. [[A, B],[A, B]]
    B. An exception is thrown at run time.
    C. [[A, B], [A, B, C]]
    D. [[A, B, C], [A, B, C]]

  • Question 17:

    Given: Assume the file on path does not exist. What is the result?

    A. The compilation fails.
    B. /u01/work/filestore.txt is not deleted.
    C. Exception
    D. /u01/work/filestore.txt is deleted.

  • Question 18:

    Given these two classes:

    And given this fragment:

    Which describes the fragment?

    A. It throws IllegalMonitorStateException.
    B. It is subject to deadlock.
    C. It is subject to livelock.
    D. The code does not compile.

  • Question 19:

    Given:

    Which two independent changes will make the Main class compile? (Choose two.)

    A. Move the entire Student class declaration to a separate Java file, Student.java.
    B. Change line 2 to public Student(String classname).
    C. Change line 1 to public class Student {.
    D. Change line 3 to Student student = new Student("Biology");.
    E. Change line 1 to static class Student {.

  • Question 20:

    Given:

    Which statement on line 1 enables this code to compile?

    A. Function f = n -> n * 2;
    B. Function f = n -> n * 2;
    C. Function f = n -> n * 2;
    D. Function f = n -> n * 2;
    E. Function f = n -> n * 2;

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.