Result of invoking methods

Report a typo

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

Here are the results of invoking the two methods:

file.listFiles(); // returns an array with three elements
file.getParentFile(); // returns non-null object

Select the correct statement about file.

Select one or more options from the list
___

Create a free account to access the full topic