Given the code fragment: Path source = Paths.get("/repo/a/a.txt"); Path destination = Paths.get("/repo");

By | January 1, 2023

Given the code fragment:
Path source = Paths.get(“/repo/a/a.txt”);
Path destination = Paths.get(“/repo”);
Files.move(source, destination); // line 1
Files.delete (source); // line 2
Assuming the source file and destination folder exist, what Is the result?

Correct Answer: B