Upgrade to Java SE 8 OCP ( Java SE 6 and all prior versions) (1Z0-813)

© examsiri.com
Question : 3 of 8
 
Marks: +1, -0
The test1.txt file is available and the test2.txt file is not available.And, given the code fragment:
Path sPath = Paths.get("test1.txt");
Path dPath = Paths.get("test2.txt");
try {
  Files.move(sPath, dPath, StandardCopyOption.ATOMIC_MOVE);
} catch (IOException ex) {
  System.err.println("Exception!");
}

Which statement is true?
Go to Question: