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

    Given:

    Which statement on line 1 enables this code fragment to compile?

    A. Function function = String::toUpperCase;
    B. UnaryOperator function = s -> s.toUpperCase();
    C. UnaryOperator function = String::toUpperCase;
    D. Function function = m -> m.toUpperCase();

  • Question 32:

    Given: Which annotation should be used to remove warnings from compilation?

    A. @SuppressWarnings on the main and print methods
    B. @SuppressWarnings("unchecked") on main and @SafeVarargs on the print method
    C. @SuppressWarnings("rawtypes") on main and @SafeVarargs on the print method
    D. @SuppressWarnings("all") on the main and print methods

  • Question 33:

    Given:

    What is the result?

    A. 3 5 3 3
    B. 3 3 3 3
    C. 3 5 3 5
    D. 5 5 3 3

  • Question 34:

    Assuming the Widget class has a getPrice method, this code does not compile:

    Which two statements, independently, would allow this code to compile? (Choose two.)

    A. Replace line 5 with widgetStream.filter(a -> ((Widget)a).getPrice() > 20.00).
    B. Replace line 1 with List widgetStream = widgets.stream();.
    C. Replace line 5 with widgetStream.filter((Widget a) -> a.getPrice() > 20.00).
    D. Replace line 4 with Stream widgetStream = widgets.stream();.

  • Question 35:

    Given:

    What is the output?

    A. :APPLE:ORANGE:BANANA appleorangebanana
    B. :APPLE:ORANGE:BANANA
    C. APPLE:apple ORANGE:orange BANANA:banana
    D. appleorangebanana :APPLE:ORANGE:BANANA
    E. apple:APPLE orange:ORANGE banana:BANANA

  • Question 36:

    Given:

    What is the result?

    A. 6910 3
    B. 10126 3
    C. 3
    D. 6104 3

  • Question 37:

    Given: Which is true?

    A. System.out is the standard output stream. The stream is open only when System.out is called.
    B. System.in cannot reassign the other stream.
    C. System.out is an instance of java.io.OutputStream by default.
    D. System.in is the standard input stream. The stream is already open.

  • Question 38:

    Given:

    Which three actions implement Java SE security guidelines? (Choose three.)

    A. Change line 7 to return names.clone();.
    B. Change line 4 to this.names = names.clone();.
    C. Change the getNames() method name to get$Names().
    D. Change line 6 to public synchronized String[] getNames() {.
    E. Change line 2 to private final String[] names;.
    F. Change line 3 to private Secret(String[] names) {.
    G. Change line 2 to protected volatile String[] names;.

  • Question 39:

    Which two statements set the default locale used for formatting numbers, currency, and percentages? (Choose two.)

    A. Locale.setDefault(Locale.Category.FORMAT, "zh-CN");
    B. Locale.setDefault(Locale.Category.FORMAT, Locale.CANADA_FRENCH);
    C. Locale.setDefault(Locale.SIMPLIFIED_CHINESE);
    D. Locale.setDefault("en_CA");
    E. Locale.setDefault("es", Locale.US);

  • Question 40:

    Given an application with a main module that has this module-info.java file:

    Which two are true? (Choose two.)

    A. A module providing an implementation of country.CountryDetails can be compiled and added without recompiling the main module.
    B. A module providing an implementation of country.CountryDetails must have a requires main; directive in its module-info.java file.
    C. An implementation of country.countryDetails can be added to the main module.
    D. To compile without an error, the application must have at least one module in the module source path that provides an implementation of country.CountryDetails.
    E. To run without an error, the application must have at least one module in the module path that provides an implementation of country.CountryDetails.

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.