Java8 provides a functional interface called Consumer, Whose signature looks like following
@FunctionalInterface
public interface Consumer<T> {
void accept(T t);
default Consumer<T> andThen(Consumer<?...
Home » All posts
Java8:Effective use of Consumer Functional Interface
in
java interview questions,
java8,
java8feature
- on November 20, 2017
- No comments
Java8: deep dive to Supplier Interface
in
java interview questions,
java8,
java8 feature,
java8feature
- on November 06, 2017
- No comments

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...