Can anyone tell me if this code:
public class OvTester { @Override public int hashCode() { return toString().hashCode(); } }
@Override is just compile time check if the implementer really overrides the method.
@Override
if you try overriding
@Override public void equals(Object ob){ }
it will fail to compile