# What is a Stream?: an overview

A data stream is like a water stream, where data flows from a source to a destination and the stream exists only between them.

Apprentice · Java · Updated November 16, 2026

By Gregor Dzierzon

It is easiest to explain a data stream by comparing it to a physical water stream.

A stream of water is just water flowing from one body of water toward another.

![A stream has a source and a destination](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/09/a02d1a3d982844dfb7267ff42d5cf05f.png "A stream has a source and a destination")

If water exists in a lake in a mountain and we want to let it flow into another lake in the valley, we would open a dam to start the flow.

Before the dam is opened, the water is happily resting in the mountain lake, which is the source of fresh water.

Once the water reaches the lake in the valley, it will again come to rest.

The stream only exists between the source and destination lakes.

## Cheat sheets

- [What is a Stream? Data at Rest and Data in Transit](https://www.ask-codey.com/cheat-sheets/what-is-a-stream-an-overview-cheat-sheet)

Source: https://www.ask-codey.com/lessons/what-is-a-stream-an-overview
