Given:
Assume the file on path does not exist.
What is the result?
Given:
Assume the file on path does not exist.
What is the result?
The presented code utilizes the Java NIO API to delete a file if it exists. The method Files.deleteIfExists(Path) returns true if the file was deleted by this method; false if the file could not be deleted because it did not exist. Given that the file does not exist, the method will return false, and the program will output '/u01/work/filestore.txt is not deleted.'
B is true.