0 votes
in JAVA by
What is stream in java?

1 Answer

0 votes
by

What is stream in java?

A Stream in Java can be defined as a sequence of elements from a source. Streams supports aggregate operations on the elements. The source of elements here refers to a Collection or Array that provides data to the Stream.

Stream keeps the ordering of the elements the same as the ordering in the source. The aggregate operations are operations that allow us to express common manipulations on stream elements quickly and clearly.

Related questions

0 votes
asked Apr 15, 2021 in JAVA by SakshiSharma
+1 vote
asked Feb 15, 2020 in JAVA by rahuljain1
...