Stream In Java 8 and Its Features

Erp Solutions Oodles12 Sep, 2023Web Development

Java provides a new fresh package in Java 8 called java.util.stream. This package i.e. java.util.stream, consists of interfaces, classes and enum to allows functional-style operations on the element. You can use stream by importing java.util.stream package into a project. Stream provides following features: Stream doesn't store element. It simply transfers elements from a source such as a an array, data structure or an I/O channel, through a channel of computational operations. Stream is functional in nature. Operations performed on a stream doesn't modify it's source. For example, filtering a Stream attained from a collection produces a new Stream without the filtered element, rather than removing elements from the source collection. Stream is lazy and evaluates code only when needed.

Recent Profiles

Lewis Sutton

Lewis Sutton

View Profile

Kerry Ticha

Kerry Ticha

View Profile

Daniel Olugeoye

Daniel Olugeoye

View Profile

Chase Shymkiw

Chase Shymkiw

View Profile

rug cleaning Philadelphia

Rug Cleaning Philadelphia

View Profile

my siganture home funiture

My Siganture Home Funiture

View Profile

Nitro cold brew maker

Nitro Cold Brew Maker

View Profile

Smart Electrical Clearance Outlet Capalaba

Smart Electrical Clearance Outlet Capalaba

View Profile