Oracle
1Z0-804 · Question #57
1Z0-804 Question #57: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-804 to reveal the answer and full explanation for question #57. The question stem and answer options stay visible for context.
Question
Given the code fragment: Which two try statements, when inserted at line ***, enable the code to successfully move the file info.txt to thedestination directory, even if a file by the same name already exists in the destination directory?
Exhibit
Options
- Atry (FileChannel in = new FileInputStream (source). getChannel();
- Btry ( Files.copy(Paths.get(source),Paths.get(dest));
- Ctry ( Files.copy(Paths.get(source),
- Dtry (Files.move(Paths.get(source),Paths.get(dest));
- Etry(BufferedReader br = Files.newBufferedReader(Paths.get(source),
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.
