nerdexam
Oracle

1Z0-805 · Question #31

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.

Java I/O Fundamentals

Question

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

Options

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

How the community answered

(45 responses)
  • A
    82% (37)
  • B
    9% (4)
  • D
    7% (3)
  • E
    2% (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-805 Practice