IT Community - Software Programming, Web Development and Technical Support

What’s the difference between Hash Map and Hash Table?

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?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Java Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-23-2007, 10:38 PM
mobilegeek mobilegeek is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 205
mobilegeek is on a distinguished road
Question What’s the difference between Hash Map and Hash Table?

What’s the difference between Hash Map and Hash Table?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-27-2007, 06:39 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Thumbs up Re: What’s the difference between Hash Map and Hash Table?

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-14-2007, 06:37 AM
leoraja8 leoraja8 is offline
D-Web Sr.Programmer
 
Join Date: May 2007
Posts: 194
leoraja8 is on a distinguished road
Post Re: What’s the difference between Hash Map and Hash Table?

* 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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 10:34 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0