nerdexam
Oracle

1Z0-804 · Question #159

Which two methods are defined in the FileStore class print disk space information?

The correct answer is A. getTotalSpace () C. getUsableSpace (). A: The getTotalSpace() method returns the size, in bytes, of the file store. C: The getUsableSpace() method returns the number of bytes available to this Java virtual machine on the file store.

NIO.2

Question

Which two methods are defined in the FileStore class print disk space information?

Options

  • AgetTotalSpace ()
  • BgetFreeSpace ()
  • CgetUsableSpace ()
  • DgetTotalCapacity ()
  • EgetUsed ()

How the community answered

(26 responses)
  • A
    69% (18)
  • B
    8% (2)
  • D
    19% (5)
  • E
    4% (1)

Explanation

A: The getTotalSpace() method returns the size, in bytes, of the file store. C: The getUsableSpace() method returns the number of bytes available to this Java virtual machine on the file store.

Topics

#FileStore#disk space#getTotalSpace#getUsableSpace

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice