0 votes
in Java by
What is streams in Java 8?

1 Answer

0 votes
by (5k points)
Stream in java 8:- Stream represents a sequence of objects from a source, which supports various aggregate operations.

The features of Java 8 stream: –

1. A stream is not a data structure, it takes input from the Collections, Arrays or I/O channels.
2. Streams don’t change the original data structure, it provides only the result as per the pipelined methods.
3. Each intermediate operation is lazily executed and returns a stream as a result, hence various intermediate operations can be pipelined. Terminal operations mark the end of the stream and return the result.

Share:- Whatsapp Facebook Facebook

Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.