
Oracle Java SE 11 Programmer II - 1Z1-816 Exam Questions
QUESTION NO: 1
Given:

Which two are correct? (Choose two.)

Given:

Which two are correct? (Choose two.)

Correct Answer: B,C
QUESTION NO: 2
Given this enum declaration:

Examine this code:
System.out.println(Alphabet.getFirstLetter());
What code should be written at line 3 to make this code print A?
Given this enum declaration:

Examine this code:
System.out.println(Alphabet.getFirstLetter());
What code should be written at line 3 to make this code print A?
Correct Answer: B
QUESTION NO: 3
Given these two classes:


And given this fragment:

Which describes the fragment?
Given these two classes:


And given this fragment:

Which describes the fragment?
Correct Answer: C
QUESTION NO: 4
Given:

What is the result?
Given:

What is the result?
Correct Answer: B
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 5
Given:

and

Which code fragment on line 1 makes the s1 set contain the names of all employees born before January 1, 1989?

Given:

and

Which code fragment on line 1 makes the s1 set contain the names of all employees born before January 1, 1989?

Correct Answer: D
QUESTION NO: 6
Given:

What is the result?
Given:

What is the result?
Correct Answer: A
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 7
Given an application with a main module that has this module-info.java file:

Which two are true? (Choose two.)
Given an application with a main module that has this module-info.java file:

Which two are true? (Choose two.)
Correct Answer: B,E
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 8
Given:

Which statement is equivalent to line 1?
Given:

Which statement is equivalent to line 1?
Correct Answer: A
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).




