Explain the difference between intermediate and terminal operations in Java8?
|1.||The intermediate operation produces stream pipelining||Terminal operation terminate the pipeline|
|2.||Intermediate operations can be chained multiple times on a stream||Terminal operations cannot be chained various times.|
|3.||Intermediate operations cannot be evaluated independently; it needs a terminal operation for evaluation.||Terminal Operations can be evaluated independently.|
Suggest An Answer
No suggestions avaliable!