Hi,
I was told in my project that we should declare the initial size of StringBuffer with a prime-number ie like
I dint get a convincing response as to why it should be a primenumber.
And it seems, the same logic applies even to Hashtable.
Can any1 tell me whats the actual reason behind this?
TIA.
Thanks and Regards,
Prashanth Babu.
I was told in my project that we should declare the initial size of StringBuffer with a prime-number ie like
I dint get a convincing response as to why it should be a primenumber.
And it seems, the same logic applies even to Hashtable.
Can any1 tell me whats the actual reason behind this?
TIA.
Thanks and Regards,
Prashanth Babu.