Java8: deep dive to Supplier Interface

Java8: deep dive to Supplier  Interface
In this tutorial, we will learn How we can use a method reference as a Supplier and what we can do using this Supplier interface. Supplier: To put it simply we use the term  Supplier when it produces something. So in terms of java Supplier...

Java8:Deep dive to Lambda as a Closure

Java8:Deep dive to Lambda as a Closure
In Java8 the most important inclusion is the lambda, It is important because  using lambda we can manipulate function/method like data member , also we can pass or returns a function from another function(using java Functional interface). Prior...