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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.