The Stream API

  • Quentin CharatanEmail author
  • Aaron Kans
Part of the Texts in Computer Science book series (TCS)


By the end of this chapter students should be able to:
  • explain the term stream in the context of the java stream API;

  • identify the advantages of stream processing over iteration;

  • describe the three stages involved in processing a stream;

  • explain what is meant by lazy evaluation;

  • create streams from scratch, from collections and from files;

  • use a variety of intermediate methods to process streams;

  • use appropriate methods to terminate streams;

  • explain the difference between stateless and stateful operations;

  • explain how streams can be created in parallel mode;

  • identify the possible pitfalls with parallel stream processing and explain how to avoid them.

Copyright information

© Springer Nature Switzerland AG 2019

Authors and Affiliations

  1. 1.University of East LondonLondonUK

Personalised recommendations