Oracle Java SE 11 Programmer II (1Z0-816) Free Practice Test
Question 1
Given:
jdeps -jdkinternals C:\workspace4\SimpleSecurity\jar\classes.jar
Which describes the expected output?
jdeps -jdkinternals C:\workspace4\SimpleSecurity\jar\classes.jar
Which describes the expected output?
Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 2
Which two are successful examples of autoboxing? (Choose two.)
Correct Answer: D,F
Question 3
Which two statements set the default locale used for formatting numbers, currency, and percentages? (Choose two.)
Correct Answer: A,D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 4
Consider this method declaration:

A) "SET SESSION AUTHORIZATION " + user
B) "SET SESSION AUTHORIZATION " + stmt.enquoteIdentifier(user)
Is A or B the correct replacement for <EXPRESSION> and why?

A) "SET SESSION AUTHORIZATION " + user
B) "SET SESSION AUTHORIZATION " + stmt.enquoteIdentifier(user)
Is A or B the correct replacement for <EXPRESSION> and why?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 5
Given:

What is the result?

What is the result?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 6
Given:

and:

Which code, when inserted on line 10, prints the number of unique localities from the roster list?

and:

Which code, when inserted on line 10, prints the number of unique localities from the roster list?
Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 7
Given:

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

After which line can we insert assert i < 0 || values[i] <= values[i + 1]; to verify that the values array is partially sorted?
Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 8
Given:
public class X {
}
and
public final class Y extends X {
}
What is the result of compiling these two classes?
public class X {
}
and
public final class Y extends X {
}
What is the result of compiling these two classes?
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).