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

Give the code fragment:

What is the result?
Correct Answer: A Vote an answer
Given the code fragement:

If exceptions occur when closing the Filewriter object and when retrieving the JString class object, which exception object is propagated up to the caller of the processFile method?
Correct Answer: B Vote an answer
Given:

What is the result?
Correct Answer: C Vote an answer
Which two states are valid for a watch key?
Correct Answer: A,C Vote an answer

Which code fragment, when inserted at line n1, produces the result fy20`4.txt?
Correct Answer: C Vote an answer
Given:

What is the result?
Correct Answer: C Vote an answer