While going through Functional Interfaces, I am not able to understand how are they different from other interfaces with a single method, like Runnable.
We can use Runnable as we try to use other Functional interfaces. Prior to Java 8, we already could create interfaces and anonymous objects for a single piece of functionality.
For example:
@FunctionalInterface
public interface ITrade {
public boolean check(Trade t);
}
How is this different from:
public interface ITrade {
public boolean check(Trade t);
}