Oracle
1Z0-804 · Question #120
View the exhibit: Given the code fragment: What is the result?
The correct answer is C. 4. Konstante unbekannt Note: TheFileSystems.getDefault() returns the default FileSystem. The default file system creates objects thatprovide access to the file systems accessible to the Java virtual machine. The working directory of the filesystem is the current user directory…
Generics and Collections
Question
View the exhibit:
Given the code fragment:
What is the result?
Exhibits
Options
- ACompilation fails
- B6
- C4
- D1
- E3
- FNot possible to answer due to missing exhibit.
How the community answered
(26 responses)- A8% (2)
- B4% (1)
- C73% (19)
- D15% (4)
Explanation
Konstante unbekannt Note: TheFileSystems.getDefault() returns the default FileSystem. The default file system creates objects thatprovide access to the file systems accessible to the Java virtual machine. The working directory of the filesystem is the current user directory, named by the system property user.dir.
Topics
#generics#collections#compilation#type inference
Community Discussion
No community discussion yet for this question.

