According to Java Language Specification (version 8.0), “interfaces do not inherit from Object, but rather implicitly declare many of the same methods as Object.” If you provide an abstract method from Object class in the interface, it still remains a functional interface.
@FunctionalInterface
interface EqualsInterface {
boolean equals(Object obj);
}
The compiler gives the error: “ EqualsInterface is not a functional interface: no abstract method found in interface EqualsInterface ”. Why? Thanks in advance