First step to understand Stream concept in Java 8

In this post, we’ll see how Stream works in Java 8, its Characteristics, how Stream and pipelines operations works with examples. This post help you to understand and grasp the basic knowledge of writing Stream example, its usefulness and working.

What is a Stream in Java
“Stream is a wrappers around collections that support many convenient and high-performance operations expressed compactly but clearly with lambdas.”
Streams are not collections: they do not manage their own data. Instead, they are wrappers around existing data structures. When you make or transform a Stream, it does not copy the underlying data. Instead, it just builds a pipeline of operations. How many times that pipeline will be invoked depends on what you later do with the stream.
Click here to read more


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s