All classes in java extend the Object class implicitly. But that doesn't concern interfaces. Interfaces can only extend other interfaces, but no classes. However, I can override object class methods inside my interface.
public interface NewInterface {
@Override
boolean equals(Object var1);
@Override
int hashCode();
}
Can you please explain in simple words how is this even possible? Is there any use case for this?