In Maps ,
I create a class according to book ,and overrode hashCode() ,equals () to use objects as keys as according to page 563
My,
hashCode() returns length of
String.
equals() tests String-variable's equality(only 1 var)
Now after put()ng one key,value
when i change the key-objects variables ..its value should not be .
accessible using get(key)
If value ->changed to same length string,hashCode wd be same,but equals should fail and VAlue wont be found.
In my case, after modifying to different length string o/p is correct ,NULL
but same lenght should also be null as equals() fails ...but its picking value.
can you help me understing it if its all right & why its correct
thank you