Chapter 11: Performing Classic I/O

  1. The purpose of the File class is to offer access to the underlying platform’s available filesystem(s).
  2. Instances of the File class contain the pathnames of files and directories that may or may not exist in their filesystems.
  3. File’s listRoots() method returns an array of File objects denoting the root directories (roots) of available filesystems.
  4. A path is a hierarchy of directories that must be traversed to locate a file or a directory. A pathname is a string representation of a path; a platform-dependent separator character (such as the Windows backslash [\] character) appears between consecutive names.
  5. The difference between an absolute pathname and a relative pathname is as follows: an absolute pathname ...

Get Learn Java for Android Development, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.