Oracle 1Z1-804 Actual Free Exam Questions & Community Discussion
Which code fragment correctly appends "Java 7" to the end of the file /tmp/msg.txt?
Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
An application is waiting for notification of changes to a tmp directory using the following code statements:
Path dir = Paths.get("tmp")
WatchKey key = dir.register (watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY) ;
In the tmp directory, the user renames the file testA to testB,
Which statement is true?
Path dir = Paths.get("tmp")
WatchKey key = dir.register (watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY) ;
In the tmp directory, the user renames the file testA to testB,
Which statement is true?
Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given the integer implements comparable: What is the result?


Correct Answer: D
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which statement declares a generic class?
Correct Answer: C
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given:

Which three values will appear in the output?

Which three values will appear in the output?
Correct Answer: A,B,F
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given that myFile.txt contains:

What is the result?

What is the result?
Correct Answer: D
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given:

Which two are true?

Which two are true?
Correct Answer: A,G
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given the code fragment:
DateFormat df;
Which statement defines a new Dateformat object that displays the default date format for the UK Locale?
DateFormat df;
Which statement defines a new Dateformat object that displays the default date format for the UK Locale?
Correct Answer: D
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
0
0
0
10
