Stream: Terminal and Non-Terminal Operations in Java
The Stream interface has a selection of terminal and non-terminal operations. Non-terminal Operations A non-terminal stream operation is an intermediate[…]
Read moreAmplify your java knowledge with javagyansite
The Stream interface has a selection of terminal and non-terminal operations. Non-terminal Operations A non-terminal stream operation is an intermediate[…]
Read moreusing distinct() The distinct API returns a new Stream which will only contain the distinct elements from the original stream. Output[…]
Read moreWith Java 8, Permanent Generation(PermGen) has been removed and is replaced with Metaspace. Permanent Generation(PermGen): It is considered as part of Method[…]
Read moreThe Java forEach method provides a convenient and expressive way to iterate over elements in a collection and perform an[…]
Read morePlease visit Enums blog before venturing further into this article. Singleton Implementation Enums are by default thread-safe and provide an easy[…]
Read moreJava enum type is a special type of class for creating a collection of constants. Please note that enums implicitly[…]
Read moreThreadLocal is used to create thread-scope variables. ThreadLocal class is used for creating thread-local variables which can only be read and[…]
Read moreLambda expression was introduced in Java 8. Java lambda expressions are Java’s first step into functional programming. A lambda expression[…]
Read moreBefore Java 8, interfaces could have only public abstract methods. It was not possible to add new functionality to the[…]
Read moreWe can combine several lists of values into a single list of values using flatMap(). It’s called flatMap() because it[…]
Read more