---
title: "Discussion on \"Java Streams - map() vs flatMap()\" | Hashnode"
description: "Discussion on \"Java Streams - map() vs flatMap()\". Introduction\nIn this block, we will learn about map and flatMap methods in Java streams API. Both are very useful intermediate methods of Java 8, to perform transformation operations on a list.\n\nmap() method used for transformation (e.g. converting l..."
url: "https://hashnode.com/posts/java-streams-map-vs-flatmap/640305e65cdaaa6a35304f80"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Java Streams - map() vs flatMap()](https://suyashkejriwal.hashnode.dev/java-streams-map-vs-flatmap?utm_source=hashnode&utm_medium=feed)

Introduction In this block, we will learn about map and flatMap methods in Java streams API. Both are very useful intermediate methods of Java 8, to perform transformation operations on a list. map() method used for transformation (e.g. converting l...

Mar 4, 2023 · 3 min read · suyashkejriwal.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#java8](https://hashnode.com/tag/java8)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#java-interview-questions](https://hashnode.com/tag/java-interview-questions)

## Written by

[Suyash Kejriwal](https://hashnode.com/@suyashKejriwal)

@suyashKejriwal

  
[View profile](https://hashnode.com/@suyashKejriwal)

Java Developer || Programming Enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
