1.

What is the purpose of functional interface in Java 8?

Answer»

FUNCTIONAL interfaces are those interfaces that have a SINGLE functionality.

Example
  • CompareTo--- This INTERFACE is only for comparison purposes.
  • Function---this interface accepts only one argument and GIVES the result.
  • This interface means that an object is tested to be either true or false.


Discussion

No Comment Found