https://stackify.com/streams-guide-java-8/
https://www.oracle.com/technical-resources/articles/java/ma14-java-se-8-streams.html
Performance:
A
forloop through an array is extremely lightweight both in terms of heap and CPU usage. If raw speed and memory thriftiness is a priority, using a stream is worse.
https://stackoverflow.com/questions/44180101/in-java-what-are-the-advantages-of-streams-over-loops
- Stream filters, mappings, etc, cannot throw checked exceptions