Can anyone tell me if this code:
public class OvTester { @Override public int hashCode() { return toString().hashCode(); } }
No, it will only mean that the hashCode() method is being overridden. The compiler will check at compile time that hashCode() really is a method (with that signature) that is being overridden.