Difference between HashMap and HashTable
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 10741
Total Votes: 139 votes
Submitted on: 2011-02-05 08:21:15
Submitted By: Javin Paul
Description:This question oftenly asked in interview to check whether candidate understand correct usage of collection classes and aware of alternative solutions available.
1. The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. (HashMap allows null values as key and value whereas Hashtable doesn't allow nulls). More detail...