1) Hashtable
2) Synchronized Map
3) ConcurrentHashMap
I am shooked to see that ConcurrentHashMap took the maximum time to perform similar operations. I executed the program several times and the order remained the same throughout.
I have attached the source code for the same. Please let me know if I am doing something wrong.
Download link : http://www.2shared.com/file/k5LUxd-1/src.html
Look for “Save file to your PC : click here”