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

Question 1
Given the code fragment:

What is the result?

Correct Answer: C
Question 2
Given the interface:

Which class implements idGenerator in a safe manager, so that no threads can get a duplicate id value during concurrent access?

Correct Answer: D
Question 3
Given the code fragment:
Given the code fragment:

What is the result?

Correct Answer: B
Question 4
Given the code fragment:

Which code fragment, when inserted at line n1, enables the code to print the could of string elements whose length is greater than three?

Correct Answer: C
Question 5
Given the code fragment:

Correct Answer: A
Question 6
Given the code fragment:

What is the result?

Correct Answer: B