1Z0-819 Web TestEngine demo

Exit VCEDump 1Z0-819 Java SE 11 Developer
Question 43 of 50
0% complete
Q43 Single choice

Given the code fragment:

Path currentFile = Paths.get("/scratch/exam/temp.txt");

Path outputFile = Paths get("/scratch/exam/new.txt");

Path directory = Paths.get("/scratch/");

Files.copy(currentFile, outputFile);

Files.copy(outputFile, directory);

Files.delete (outputFile);

The /scratch/exam/temp.txt file exists. The /scratch/exam/new.txt and /scratch/new.txt files do not exist.

What is the result?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in