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
Q80: If you write a simple Student class,
Q81: Fill in the blank in the following
Q82: Which expression determines whether there is a
Q83: Which of the following is NOT a
Q84: Fill in the blank in the following
Q85: Which statement reads the configuration file named
Q86: Fill in the blank in the following
Q87: Which of the following is NOT a
Q88: Which expression creates an empty file named
Q90: Fill in the blank in the following
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents