Function Chaining in Java

A Function is primarily used along with the map operation on a Java stream. In this post, we will learn about Function chaining in Java 8.

September 29, 2020

Predicate Chaining in Java

We have used a Predicate in a Java stream. This post covers the methods in Predicate class which allow us to do Predicate chaining in Java 8.

September 21, 2020

Summary Statistics in Java 8

Java 8 added three Summary Statistics classes viz., IntSummaryStatistics LongSummaryStatistics and DoubleSummaryStatistics used to collect statistics.

July 20, 2020

Default Method Resolution Rules

This post covers the default method resolution rules. These will be used when a class inherits more than one method with the same signature.

May 25, 2020

A Complete Guide to Java Optional

Optional is a container object added to Java 8+ that is used as a wrapper over some value. It provides a mechanism to represent “no result” for a method.

November 11, 2019

Java Method References

A method reference is a reference to an existing method. When a lambda expression just calls an existing method, we can use a Method Reference.

May 29, 2019

A dive deep on Java 8 IntStream

A sequence of primitive int-valued elements supporting sequential and parallel and aggregate operations. It is an int primitive specialization of Stream.

May 14, 2019

Comparator comparing

The Comparator is a comparison function in Java that imposes a total ordering on a collection of objects. The comparing is a static method in it

April 29, 2019