How can you copy a file in Java?
Java MCQ: How can you copy a file in Java? a) Using copyFile() method b) Using Files.copy() method c) Using FileUtils.copy() method d) Using copy() method of File class Answer: b) Using Files.copy() method Explanation: The Files.copy() method, available in the java.nio.file package, is used to copy files or directories in Java. This method provides […]
How can you copy a file in Java? Read More »