Sequential Stream vs Parallel Stream in java
In this article we will learn java 8 stream with example.
What is Stream in java?
A Stream is not a data structure instead it takes input from the collection , Arrays.
A Stream in java is a sequence of objects which operates on data source such as an array or collection. Stream also supports many aggregate operations like filter, map, limit and reduce to customize the original data into a different form according to the need.