posted 20 years ago
Why collections ( some ) uses hashcode to search the object .
where k1,k2,k3,v1,v2 & v3 are the reference variable that are refering corresponding objects in GCH . so my question is why they uses hashcode for searching purpose and why not equals() method .
like k4.equals(k1) then give value v1 to k4 .... where hashcode came in between ?
i hope question is clear .
please help .
thanks .