Kiran Yadav wrote:So will you please help us to consider the factors for creating custom hashmap.
The immediately obvious factors are:
1) No added benefit (the JDK's implementation is about as good as it gets, if you need highly concurrent implementation, you can use the
ConcurrentHashMap).
2) More overall work which will never pay back, possible need to maintain the new code.
3) Possibility of bugs (JDK's implementations were tested by millions of users and are virtually bug-free).
I don't want to sound harsh, but in my opinion you need very very very serious reason to reimplement a hashmap in a real-world application. All the factors I can think of favor the JDK's
HashMap heavily.