sidhartha pani sidhartha pani -4 years ago 80
Java Question

What is side effect in java streams API

What is meant by side-effects in Java Streams? Can you please explain me how to write functions without side-effects.

Answer Source

Terminal operations, such as Stream.forEach or IntStream.sum, may traverse the stream to produce a result or a side-effect

Please refer the below link to know more about side-effect.

https://docs.oracle.com/javase/8/docs/api/java/util/stream/package-summary.html

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download