Back to Browse

Java8 Streams tutorials || Introduction to Streams || Definition of Streams

357 views
May 12, 2020
10:19

#learnwithkrishnasandeep #javacodinginterviewquestions #javaexamples #javaprograms #javatutorials #javaprogramming What are Streams ? ---------------------- 1) Added in 1.8 Java API 2) Manipulate collections of data. 3) Declarative way(Rather than code we express a query) Ex : Filter Streams are fancy iterators over collection of data. Streams are a) declarative : More concise and readable b) Composable : Greater flexibilty c) Parallelizable : Better performance Definition of Stream : ---------------- Stream sequence of elements from a source that supports data processing operations. Sequencing of elements : ----------------- It provides an interface to sequenced set of values. Source : -------------------- Streams consume data from collections,arrays and I/o Resources. Data processing operations: ------------------- filter ,map,reduce,match ,sort Characteristics of Streams : -------------------------- a) Pipelining b) Internal Iteration Stream operations return stream ,allowing operations to be chained. Iterators are iterated explicitly using iterator in collections.But in streams iteration happens behind the scenes.

Download

0 formats

No download links available.

Java8 Streams tutorials || Introduction to Streams || Definition of Streams | NatokHD