This is a discussion on What’s the difference between Hash Map and Hash Table? within the Java Programming forums, part of the Software Development category; What’s the difference between Hash Map and Hash Table?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi mobilegeek 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). HashMap does not guarantee that the order of the map will remain constant over time. HashMap is unsynchronized and Hashtable is synchronized. Oxygen |
| |||
| * Map provides Collection views instead of direct support for iteration via Enumeration objects. Collection views greatly enhance the expressiveness of the interface. * Map allows you to iterate over keys, values, or key-value pairs; Hashtable does not provide the third option. * Map provides a safe way to remove entries in the midst of iteration; Hashtable did not. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I sort a hash by the hash value? | S.Vinothkumar | Perl | 2 | 11-26-2007 06:56 AM |
| What is the difference between DELETE TABLE and TRUNCATE TABLE commands in SQL Server | oxygen | Database Support | 6 | 11-23-2007 06:17 AM |
| Overview of Hash table. | H2o | Other Web Programming Languages | 1 | 09-14-2007 07:28 AM |
| What is the difference between global and action sheets within the data table in QTP? | sundarraja | Testing Tools | 1 | 08-13-2007 11:50 PM |
| What is a hash? | vadivelanvaidyanathan | Perl | 1 | 07-30-2007 07:29 AM |