Is it possible for isDirectory() and isFile() both to return false?

A good answer might be:

Yes---if the pathName of the File object does not name an existing file or an existing directory, then both methods return false. However, if the thing named by pathName does exist, then one method or the other returns true (but not both).

End of the Chapter

You have reached the end this chapter. You may wish to test the existence of the following topics. Click on a blue subject that interests you to go to where it was discussed. To get back here, click on the "back arrow" button of your browser.


Click here to go back to the main menu.
You have reached the End.