Why Functional Interfaces in Java 8 have one Abstract Method?
问题 As we know in Java 8, the concept of functional interfaces are introduced. A Functional Interface has one abstract method and several default or static methods are possible. But why should a Functional interface have only one abstract method? If Interface has more then one abstract method, why is this not a Functional Interface? 回答1: The functional interface also known as Single Abstract Method Interface was introduced to facilitate Lambda functions. Since a lambda function can only provide