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 […]
Tag: what is supplier java 8
Top Java 8 Interview Questions and Answers
This post contains interview questions related to new features introduced in java 8 . What is a lambda expression ? What are advantages of lambda expression ? What is a functional interface ? What is the type of a lambda expression ? What is the target type of a lambda expression ? What is the […]