nerdexam
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

1Z0-804 question #120 exhibit 1
1Z0-804 question #120 exhibit 2

Options

  • ACompilation fails
  • B6
  • C4
  • D1
  • E3
  • FNot possible to answer due to missing exhibit.

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    4% (1)
  • C
    73% (19)
  • D
    15% (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.

Full 1Z0-804 Practice