| 1. |
When does the getParent() method in the File class return null?
Please select the best answer.
|
| |
A.
|
When the file is a directory |
| |
B.
|
When the file has no parent |
| |
C.
|
When the file is a shortcut, symbolic link, or alias |
| |
D.
|
Never. If there's a problem, getParent() throws an IOException |
| |
E.
|
When the getParent() method is overloaded.
|