What are the difference between map and flatMap stream operation in Java 8?
S.no | Map | Flat map |
---|---|---|
1. | For one input value, it gives one output value | For one input value,e it produces the arbitrary number |
BY Best Interview Question ON 18 Jan 2020