# Stream

say it: **“STREEM”** **/striːm/**

A pipeline for processing a sequence of values without storing the values itself.

## What is **Stream** in Java?

**Stream** — A pipeline for processing a sequence of values without storing the values itself.

```java
import java.util.List;

class NameFilter {
    List<String> shortNames(List<String> names) {
        return names.stream()
                .filter(name -> name.length() < 5)
                .map(String::toUpperCase)
                .toList();
    }
}
```

Level: Freelancer · [More Java terms at this level](https://www.ask-codey.com/glossary?category=java&level=4)

Updated: November 17, 2026

## In other subjects

- [Stream in C#](https://www.ask-codey.com/glossary/stream-c-sharp)

Source: https://www.ask-codey.com/glossary/stream
