Oracle
1Z0-804 · Question #60
1Z0-804 Question #60: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-804 to reveal the answer and full explanation for question #60. The question stem and answer options stay visible for context.
Question
Which code fragment correctly appends "Java 7" to the end of the file /tmp/msg.txt?
Options
- AFileWriter w = new FileWriter("/tmp/msg.txt");
- BFileWriter w = new FileWriter("/tmp/msg.txt", true);
- CFileWriter w = new FileWriter("/tmp/msg.txt", FileWriter.MODE_APPEND);
- DFileWriter w = new FileWriter("/tmp/msg.txt", Writer.MODE_APPEND);
Unlock 1Z0-804 to see the answer
You've previewed enough free 1Z0-804 questions. Unlock 1Z0-804 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.