Lazy Evaluation in Streams
In this lesson, we discuss how streams are evaluated lazily.
We'll cover the following...
In Java 8 streams the intermediate operations are not evaluated until a terminal operation is invoked.
Each intermediate operation creates a new stream, stores the provided operation/function, and returns the new stream. When a terminal operation is ...