How do you skip elements in a Java stream?

skip(n) is a Stream API intermediate operation that discards the first n elements of a stream, passing the rest through to subsequent operations.

Key Points

Example

Given the list [1, 2, 3, 4, 5], calling skip(2) drops 1 and 2, leaving a stream of [3, 4, 5] for the rest of the pipeline.

List<Integer> skipped = numbers.stream()
        .skip(2)
        .collect(Collectors.toList());

Interview Tip

A concise interview answer is

skip(n) drops the first n elements of a stream and passes the rest along, which I typically combine with limit() to implement pagination - for example skip(20).limit(10) for page three of a ten-item page size.

Last updated: 11 November 2026

Previous question: How do you limit a stream in Java?

Next question: How do you convert a stream to a Set in Java?

More Stream API Coding Questions - Level I interview questions

All Stream API Coding Questions - Level I questions