Wednesday 15 May 2024

Difference between Java Stream Map and Java Stream Filter



Java stream filter - Filter used to filter the data and always returns the boolean value. If its return is true then it will be added to the list.

Java Stream map - consisting result of the given function applying to the element.



No comments:

Post a Comment