Given the code fragment: Path source = Paths.get("/repo/a/a.txt"); Path destination = Paths.get("/repo");
Given the code fragment:Path source = Paths.get(“/repo/a/a.txt”);Path destination = Paths.get(“/repo”);Files.move(source, destination); // line 1Files.delete (source); // line 2Assuming the source file and destination folder exist, what Is the result? A. a.txt is renamed repo. B. A java.nio.file.NoSuchFileException is thrown on line 2. C. A copy of /repo/a/a.txt is moved to the /repo directory and /repo/a/a.txt is deleted. D.… Read More »