Computer Science, asked by TbiaSamishta, 1 year ago

Why is the concept of Streams introduced in java, give the advantages of using streams.

Answers

Answered by aqibkincsem
1

Streams are objects that represent sources and destinations of data. Streams that are sources of data can be read from, and streams that are destinations of data can be written to.


A stream in Java is an ordered sequence of bytes of undetermined length. The common operations on stream are filter, map, reduce, collect.

Similar questions