side effects

What Are Side Effects

Reading Time: 3 minutes SIDE EFFECTS A Side effects is something that changes the state of computer or your programme beyond just giving back a value. Side effects are considered bad, because, a function with side-effects are unpredictable ,depending on the state of the system. When a function has no side effects we can execute it anytime, it will always return the same result, given the same input. When Continue Reading

Rules while working with stream in Java 8

Reading Time: 3 minutes First, let’s have a basic understanding of stream. Then we will have a look at the side effects that can occur while working with streams. Streams represent a sequence of objects from a source, which supports aggregate operations. One thing to be notified while working with streams  is that, aggregate operation (intermediate operations) are lazy evaluated i.e. they do not start processing the content of Continue Reading