InterviewSolution
Saved Bookmarks
| 1. |
How to copy the file from one location to other?(a) Files.copy(source, target)(b) Path.copy(source, target)(c) source.copy(target)(d) Files.createCopy(target) |
|
Answer» Right answer is (a) Files.copy(source, target) The explanation is: Files.copy(source, target) is used to copy a file from one location to another. There are various options available like REPLACE_EXISTING, COPY_ATTRIBUTES and NOFOLLOW_LINKS. |
|