Oracle Java Foundations (1z0-811) Free Practice Test
Question 1
Given the code fragment:

Which statement is true?

Which statement is true?
Correct Answer: B
Question 2
Given the code fragment:

What is the result?

What is the result?
Correct Answer: B
Question 3
Identify two Java reserved words.
Correct Answer: B,C
Question 4
Which two statements are true about the Java Runtime Environment (JRE)?
Correct Answer: B,E
Question 5
Given:

What is the output?

What is the output?
Correct Answer: C
Question 6
Given the classes:

Which two modifications, independently, enable the Salad.java file to compile?

Which two modifications, independently, enable the Salad.java file to compile?
Correct Answer: D,E
Question 7
Given the code fragment:

What is the result?

What is the result?
Correct Answer: A
Question 8
Which statement is true about primitive variables?
Correct Answer: C