I had searched it but couldn't get satisfactory answers and I am not talking about general solution but how to resolve that in java coding wise I am asking..
So please help me out
Joined: Mar 22, 2005
That is handled by internally by those classes; the developer does not need to worry about it. If you're interested in the details I recommend to study the source code of the Hashtable and HashMap classes (the source is in a file called src.zip that is part of the JDK).