File or directory

Report a typo

You have an instance of java.io.File named file. It represents a file or a directory on a disk.

Here are the results of invoking two methods:

file.listFiles() // returns an empty array
file.getParentFile() // returns a non-null object

Select all the correct statements about file.

Select one or more options from the list
___

Create a free account to access the full topic