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)- A69% (18)
- B8% (2)
- D19% (5)
- E4% (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.