Java 8 Built-In Functional Interfaces

@FunctionalInterface   //It is optional
interface PrintMessage{
public void message(String text);
}

Built-In Functional Interfaces

java.util.function package has many functional interfaces. However below are the most popular used:

  • Function
  • Predicate
  • Consumer
  • Supplier

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Urban Questions

Urban Questions

UrbanQuestions.com is community platform and knowledge sharing. People can create public or private circle and invite their followers