When I use the hashCode()
method in the following statement:
System.out.println(obj.getClass().getName() + "@" +
Integer.toHexString(System.identityHashCode(obj)));
I get output like this:
"Contact@29453f441"
Which is unique for each individual object. What would the effect of overriding hashCode()
be?