public interface Table<T> {
@Overrride
default boolean equals(Object other) {
//do something and return true/false
}
}
Why does the above code has compilation error of "java: default method equals in interface Table overrides a member of java.lang.Object"? Can't we override hashCode and equals method using interface default method, presumably I have methods in the same interface to determine the equality of the object implementing this interface?