posted 19 years ago
Hashtable, HashMap and TreeMap are map implementations these collection classes should be used when you need to store data in key/value pairs.
Unlike the other two classes TreeMap is a Sorted map , sorts the element in the natural order. Hash Map & Hashtable are Unsorted & Unordered , Difference between Hashmap & hashtable is Hash map allows one null key & many null values but hash table does not . Also Hash table is synchronized
Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified