Java 8

Java 8 : java.util.function.Supplier Functional Interface

In this article, we will see what is Supplier Functional Interface introduced in Java 8 using examples. What is java.util.function.Supplier ? Supplier is a functional interface with a single abstract method get(). This was introduced in Java 8. @FunctionalInterface public class Supplier<T> {     public T get();      }   When to use a Supplier Functional […]