created: 06/02/00

CHAPTER 82 --- Input and Output Streams

This chapter discusses input and output (IO) using the package java.io available in Java 1.2 and above.

Input is data going into a program; output is data flowing out of a program. IO is frequently done using IO streams. A stream is a sequence of data flowing from a source to a destination. IO streams can be connected to a wide variety of data sources and destinations.

Chapter Topics:

  • IO Streams.
  • Readers and Writers.
  • InputStreams and OutputStreams.
  • Character data and UTF.
  • Processing Streams.

You have already used streams in reading data from the keyboard and in writing data to the monitor. Streams are used for much more than that.

QUESTION 1:

Java can read and write Internet data. What does this data look like to a Java program?

Click Here after you have answered the question