Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

java’s io is built around the concept of streams, which are a sequence of data used for input and output. Streams abstract the underlying data source or destinations, allowing uniform handling of different I/O operations.

concepts

  • input - reading from data source
  • output - writing data to a destination
  • stream types -
    • byte streams - handle raw binary data
    • character streams - handle unicode characters
  • IO operations are often wrapped in try-catch with IOException.

core packages

  • java.io
  • java.nio
  • java.nio.file