Skip to content

1z0-816 Java SE 11 Programmer II Practice Questions

Prepare for 1z0-816 with more than an answer.

80 questions in the full set12 sample questionsUpdated Oct 21, 2026

Unlock the full exam and previous versions

  • v1Version 1 225 questions Locked
  • 1z0-809Legacy Java SE 8 Programmer II (OCP) 366 questions Locked
  • 1z0-816Legacy Java SE 11 Programmer II 80 questions Current
  • 1Z0-819Legacy Java SE 11 Developer (OCP) 235 questions Locked
Exam fee
$245 USD
Level
Professional
Valid for
Does not expire (certification is permanent, but may become outdated)
Domains covered on the exam 17
  1. Java Fundamentals
  2. Exception Handling and Assertions
  3. Java Interfaces
  4. Generics and Collections
  5. Functional Interface and Lambda Expressions
  6. Java Stream API
  7. Built-in Functional Interfaces
  8. Lambda Operations on Stream
  9. Migration to a Modular Application
  10. Services in a Modular Application
  11. Concurrency
  12. Parallel Streams
  13. I/O (Fundamentals and NIO2)
  14. Secure Coding in Java SE Application
  15. Database Applications with JDBC
  16. Localization
  17. Annotations
  1. 1

    Given:

    And the command:

    java Main Helloworld

    What is the result ?

    Question exhibit
    Show answer details

    Correct answer: C

    C

  2. 2

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

    Show answer details
  3. 3

    Which code fragment compiles?

    • Option exhibit
    • Option exhibit
    • Option exhibit
    • Option exhibit
    Show answer details

    Correct answer: D

    D

  4. 4

    Which two statements correctly describe capabilities of interfaces and abstract classes? (Choose two.)

    Show answer details

    Correct answer: A, C

  5. 5

    Given:

    Which statement is equivalent to line 1?

    Question exhibit
    Show answer details

    Correct answer: C

    C

  6. 6

    Given:

    After which line can we insert assert i < 0 || values[i] <= values[i + 1]; to verify that the values array is partially sorted?

    Question exhibit
    Show answer details

    Correct answer: B

    B

Create an account to continue.