About Question enthuware.ocpjp.ii.v11.2.1805 :
Posted: Thu May 13, 2021 4:58 am
IsnĀ“t there the StandardCopyOption.REPLACE_EXISTING missing in this line:
Files.move(p1, p2, StandardCopyOption.ATOMIC_MOVE);
Because with the current code, p2 already exists and will always throw an exception, right?
Files.move(p1, p2, StandardCopyOption.ATOMIC_MOVE);
Because with the current code, p2 already exists and will always throw an exception, right?