Streams in Java 8

Streams API is a new feature introduced in Java 8. Streams API is used to process collection of objects. Streams are functional in nature, lazy, does not store elements. Streams conveys elements from a sources through a pipeline of computational operations. The sources can be a data structure or an array or an I/O channel. The ordering of elements are maintained as it is in the source.

To work with streams one needs to familiar with the below 3 stages.



1. Create streams.
2. Perform intermediate operations
3. Perform terminal operation

Read more...

Followers

Networked Followers

TopOfBlogs

  © Copyright Techwebbee by Techwebbee 2010

Back to TOP