how many methods are there in functional interface in Java 8? code example
Example: creating the functional interface in java
package com.concretepage;
@FunctionalInterface
public interface Calculator {
long calculate(long num1, long num2);
}
package com.concretepage;
@FunctionalInterface
public interface Calculator {
long calculate(long num1, long num2);
}