Java SE 11 Programmer II Free Sample Questions

Description

Covers nested classes and enumerations, exceptions and assertions, default and private interface methods, generics, collections and the Stream API, lambda expressions, and modular applications.

12 free sample questions80 in the full practice test Other versions: 1Z0-829(225),1z0-809(366),1Z0-819(235)

Try simulator

1z0-816 Sample Questions

  1. Question 1

    Multiple answers

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

    Answer and explanation

    Correct answers: A, C

  2. Question 2

    Given:

    Which statement is equivalent to line 1?

    Question 2 image
    Answer and explanation

    Correct answer: C

    C

  3. Question 3

    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 3 image
    Answer and explanation

    Correct answer: B

    B

  4. Question 5

    Which code fragment does a service use to load the service provider with a Print interface?

    Answer and explanation

    Correct answer: B

  5. Question 6

    Given:

    You want to obtain the Stream object on reading the file.

    Which code inserted on line 1 will accomplish this?

    Question 6 image
    Answer and explanation

    Correct answer: C

    C

Register free for 6 more questions

Or unlock all 80 1z0-816 questions with explanations, timed mode and flashcards.