posted 19 years ago
HashMap & Hashtable both use hashing mechanism and store the entries as key value pairs.The difference between them is hashmap can store one null key & multiple null values,but hashtable doesn't allow anything(either a key or value) which is null.One more difference is hashtable is synchronized where as hashmap is not.Deciding the better one depends on ur design.
Regards,
Priya.