Duration Class in Java 8

A Duration is time elapsed between two Instant’s. Duration concept is linked to Instant. The Duration is the amount of time between two Instant’s,  between...

Date Time API In Java 8

There were several issues with Date API from Java 7 and Previous version, which new Date & time API from Java 8 fixes these issues....

Infinite Stream in Java 8

Stream.iterate() and Stream.generate(), are two static methods from Stream interface allow you to create an infinite stream. In Stream API IntStream, LongStream and DoubleStream contains...

BinaryOperator Interface In Java 8

We also have BinaryOperator Interface in Java 8, that extends BiFunction<T, T, T> Functional interface.  BinaryOperator Interface doesn’t have any method same like UnaryOperator Interface...

UnaryOperator Interface in Java 8

UnaryOperator is the specialization of Function Interface for the case where the input parameter and return result are of the same type. [crayon-5903d35e78872147552050/] UnaryOperator doesn’t...