Hastable is synchronized and Hashmap is not, hence I guess Hastable will have some performance degradation. However below
testing contradicts my understanding.
In the above code Hashtable performs better when compared with Hashmap. Am I missing some thing here.