© Kishori Sharan 2018
Kishori SharanJava Language Featureshttps://doi.org/10.1007/978-1-4842-3348-1_7

7. Input/Output

Kishori Sharan1 
Montgomery, Alabama, USA
In this chapter, you will learn:
  • What input/output is

  • How to work with a File object to represent an abstract pathname for a file or a directory in a file system

  • The decorator pattern

  • Byte-based and character-based input/output streams

  • Reading data from a file and writing data to a file

  • Reading and writing primitive type and reference type data to input/output streams

  • Object serialization and deserialization

  • How to develop custom input/output stream classes

  • Using the Console and Scanner classes to interact with the console

  • The StringTokenizer and StreamTokenizer classes to split text into tokens ...

Get Java Language Features: With Modules, Streams, Threads, I/O, and Lambda Expressions now with O’Reilly online learning.

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