Multiple Choice
Which expression deletes the file named filename.txt?
A) Files.delete(Paths.get("filename.txt") )
B) Files.deleteFile(Paths.get("filename.txt") )
C) Files.deleteFile("filename.txt")
D) Files.delete("filename.txt")
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q58: Fill in the blank in the following
Q59: Which method moves the file pointer in
Q60: If you write a simple Student class,
Q61: Fill in the blank in the following
Q62: Assume we have a RandomAccessFile object, file,
Q64: Which methods are not in the Serializable
Q65: A Caesar cipher uses a shift of
Q66: Which of the following is NOT a
Q67: Fill in the blank in the following
Q68: Which interface allows classes to be written