Member-only story

Functional Interfaces

Being Good
Jul 19, 2023

--

  • Introduced in Java 8
  • Interface that contains only one Abstract Method
  • Lambda expressions can be used to represent an instance of a functional interface
  • A functional interface can have any number of default methods

Note: Abstract method is a method that does not have a body (implementation). Abstract method is defined using the keyword “abstract”

If you liked this story. Please follow and share a clap.

--

--

Being Good
Being Good

No responses yet