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-catchwithIOException.
core packages
java.iojava.niojava.nio.file