IO Streams

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to previous page   go to home page   go to next page        

Answer:

Internet data looks like an IO stream.

IO Streams

The core Java language does not have any IO methods. For a program to do IO, it must import an IO package. These notes (and most programs) use the package java.io.

Data for a program may come from several sources. Data created by a program may be sent to several destinations. The connection between a program and a data source or destination is called a stream. An input stream handles data flowing into a program. An output stream handles data flowing out of a program.

streams entering and leaving a program

In the picture, each "O" is a piece of data. The data are streaming from the source into the program, and streaming from the program to the destination.

QUESTION 2:

Could a stream connect two programs?