What is the purpose of functional interface in Java 8?
Functional interfaces are those interfaces that have a single functionality.
BY Best Interview Question ON 25 Apr 2020
- CompareTo--- This interface is only for comparison purposes.
---this interface accepts only one argument and gives the result. This interface means that an object is tested to be either true or false.