Skip to content

Java-Techie-jt/java8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e02e0bf · Oct 27, 2024

History

17 Commits
Jan 22, 2021
Mar 24, 2019
Mar 24, 2019
Jul 17, 2021
Oct 27, 2024
Jan 17, 2021
Feb 27, 2021
Mar 12, 2021
Dec 29, 2023
Mar 30, 2019
Aug 15, 2021
Mar 15, 2019
Aug 15, 2023
Aug 15, 2023
Aug 15, 2023
Mar 15, 2019
Jun 17, 2023
Jan 17, 2021

Repository files navigation

java8

Java 8 features

Differences between Java 8 Map() Vs flatMap() :

map() flatMap()
It processes stream of values. It processes stream of stream of values.
It does only mapping. It performs mapping as well as flattening.
It’s mapper function produces single value for each input value. It’s mapper function produces multiple values for each input value.
It is a One-To-One mapping. It is a One-To-Many mapping.
Data Transformation : From Stream to Stream Data Transformation : From Stream<Stream to Stream
Use this method when the mapper function is producing a single value for each input value. Use this method when the mapper function is producing multiple values for each input value.

Releases

No releases published

Packages

No packages published

Languages