collections
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Veena_S
Posted On:   Monday, July 3, 2006 11:25 PM

Whats the diffenrence between Hash Table and Hash Set?

Re: collections

Posted By:   Anonymous  
Posted On:   Thursday, July 6, 2006 06:14 AM

1.HashTable is Synchronized but hashset is not Synchronized

2.One null key and many null values are allowed in HashTable but HashSet Doesn't allow and null values or null keys

3.HashTable slow compare to HashSet

4.HashSet implements Set interface but HashTable implements Map interface

5.HashTable is Legacy classes;it does't directly support iterators;it is possible by defining maethods of MAP such as entrySet() ,keySet()....
About | Sitemap | Contact