Briefly explain the primary ways in which the Java Predicate functional interface differs from the Java Function functional interface. code example
Example: creating the functional interface in java
package com.concretepage;
@FunctionalInterface
public interface Calculator {
long calculate(long num1, long num2);
}