---
title: "Discussion on \"Java Interview question-18\" | Hashnode"
description: "Discussion on \"Java Interview question-18\". Question 171: Diffrence between map vs flat map\nMap:\n\nThe map() operation applies a function to each element in the stream and returns a new stream consisting of the results.\n\nIt performs a one-to-one mapping, where each input element is transformed ..."
url: "https://hashnode.com/posts/java-interview-question-18/6534f2dea74b1646de66f4ea"
---

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

Discussion

# [Java Interview question-18](https://tusharkant.hashnode.dev/java-interview-question-18?utm_source=hashnode&utm_medium=feed)

Question 171: Diffrence between map vs flat map Map: The map() operation applies a function to each element in the stream and returns a new stream consisting of the results. It performs a one-to-one mapping, where each input element is transformed ...

Oct 22, 2023 · 5 min read · tusharkant.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#springboot](https://hashnode.com/tag/springboot)
-   [#microservices](https://hashnode.com/tag/microservices)

## Written by

[Tushar kant](https://hashnode.com/@tusharkant)

@tusharkant

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

Java || SpringBoot ||AWS

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
