Difference between HashMap and HashTable
Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 15015
Total Votes: 146 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...