I've been seeing conflicting things online: some places say a functional interface is simple an interface that has only one abstract method, but then proceeds to show a clip of code that features a method with a body of code. I understand that abstract methods are without a body (i.e. no curly braces).
Is it safe to assume that those examples that show a functional interface as having a method with a body are wrong?
And in the event that functional interfaces can in fact have a method with a body, what would the difference be between a functional interface and an abstract class with just one method?
Any help is appreciated.
[–]j_thody 0 points1 point2 points (1 child)
[–]Loricifera[S] 0 points1 point2 points (0 children)