Java 8 Consumer Supplier Explained in 5 minutes

In my previous Java 8 series articles, we discussed Lambda Expression, Streams API, Default Methods and Method References. and Repeating Annotations. This time we will be looking at Consumer Supplier. What are these? These features are functional interfaces (an interface with only one abstract method) which belongs to the java.util.function package. The consumer accepts a…

Read More