Oracle Java SE 11 Programmer I (1z1-815) Free Practice Test
Question 1
Given the code fragment:

What is the result?

What is the result?
Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 2
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 3
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 4
Which three statements are benefits of encapsulation?
Correct Answer: A,C,D
Question 5
A method is declared to take three arguments.
A program calls this method and passes only two arguments.
What is the results?
A program calls this method and passes only two arguments.
What is the results?
Correct Answer: D
Question 6
Which three are valid replacements for foo so that the program will compiled and run?
public class ForTest {
public static void main(String[] args) {
int[] arrar = {1,2,3};
for ( foo ) {
}
}
}
public class ForTest {
public static void main(String[] args) {
int[] arrar = {1,2,3};
for ( foo ) {
}
}
}
Correct Answer: A,B,C
Question 7
Given:

What is the output?

What is the output?
Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 8
Which two statements are true for a two-dimensional array?
Correct Answer: A,C
Question 9
Given:

What is the result?

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

What is the result?

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