File or directory

Report a typo

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

Here are the results of invoking the two methods:

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

Select all correct statements about file.

Select one or more options from the list
___

Create a free account to access the full topic