1z0-816 Java SE 11 Programmer II Practice Questions
Prepare for 1z0-816 with more than an answer.
Unlock the full exam and previous versions
- v1Version 1 235 questions Locked
- 1z0-816Legacy Java SE 11 Programmer II 80 questions Current
- Exam fee
- $245 USD
- Level
- Professional
- Valid for
- Does not expire (certification is permanent, but may become outdated)
Domains covered on the exam 17
- Java Fundamentals
- Exception Handling and Assertions
- Java Interfaces
- Generics and Collections
- Functional Interface and Lambda Expressions
- Java Stream API
- Built-in Functional Interfaces
- Lambda Operations on Stream
- Migration to a Modular Application
- Services in a Modular Application
- Concurrency
- Parallel Streams
- I/O (Fundamentals and NIO2)
- Secure Coding in Java SE Application
- Database Applications with JDBC
- Localization
- Annotations
- 1
Given:
And the command:
java Main Helloworld
What is the result ?

Show answer details
Correct answer: C
C
- 2
Which interface in the java.util.function package can return a primitive type?
Show answer details
Correct answer: A
- 3
Which code fragment compiles?
Show answer details
Correct answer: D
D
- 4
Which two statements correctly describe capabilities of interfaces and abstract classes? (Choose two.)
Show answer details
Correct answer: A, C
A, C -- Reference: https://www.guru99.com/interface-vs-abstract-class-java.html
A, C -- Reference: https://www.guru99.com/interface-vs-abstract-class-java.html
- 5
Given:
Which statement is equivalent to line 1?

Show answer details
Correct answer: C
C
- 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?

Show answer details
Correct answer: B
B




