Monthly Archive: January 2019

Lambda in Java8 0

Lambda in Java8

A lambda expression is a concise representation of anonymous function that can be passed around. It has following characteristics: Anonymous: It does not have a name like we have in method Function: We call...

CompletableFuture in Java 8 0

CompletableFuture in Java 8

In this we will first discuss what is the benefit of completablefuture of Java 8 over Future CompletableFuture was introduced to remove the limitation of Future Object in Java 8, lets first see what...

Optional in Java 8 1

Optional in Java 8

Optional was introduced in Java 8 to handle null references and NullPointerException. Null references to Object has many issues few of which I have listed below: Its a source of error, Null reference lead...