Oracle Upgrade to Java SE 8 OCP ( Java SE 6 and all prior versions) - 1z0-813 Exam Practice Test

Question 1
Given the Greetings. Properties file, containing;

What is the result?

Correct Answer: D
Question 2
Given the code fragments:

What is the result?

Correct Answer: B
Question 3
Given the code fragment:

What change must you make to enable the code to print the following output?
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8

Correct Answer: B
Question 4
Give the code fragment:

What is the result?

Correct Answer: D
Question 5
Given the code fragment:

Which two changes, taken together, enable the use of this class in a try with resources statement?

Correct Answer: B,F
Question 6
Given:

What is the result?

Correct Answer: D