Lazy Initialization in Java8

We don't have any Lazy<T> initialisation functionality in Java as we have in other languages like Scala, C# etc. But don't worry in Java we can implement the same kind of functionality by leveraging the Lambda's and Functional interface. In this example to create the lazy evaluation we will use the Supplier<T> interface, although same … Continue reading Lazy Initialization in Java8