Oracle Java SE 7 Programmer II - 1Z0-804 Exam Practice Test

Given the code fragment:

What is the result when infected() is invoked?
Correct Answer: E
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Given:

Which three values will appear in the output?
Correct Answer: B,C,F
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Given this error message when running your application:
Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name MessageBundle, locale
And given that the MessageBundle.properties file has been created, exists on your disk, and is properly formatted.
What is the cause of the error message?
Correct Answer: D
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Given the class?

What is the result?
Correct Answer: A
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Given the code fragment:

What is the result of the employees table has no records before the code executed?
Correct Answer: A
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Given:

Which statement will iterate through Direction?
Correct Answer: A
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).