?
Solved

.net supports hash mapping

Posted on 2009-07-13
4
Medium Priority
?
205 Views
Last Modified: 2013-11-08
HI


What is hash mapping? Does .net supports hash mapping.
0
Comment
Question by:KaranGupta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 24838641
Both provide key-value access to data. The Hashtable is one of the original collection classes in Java. HashMap is part of the new Collections Framework, added with Java 2, v1.2. The key difference between the two is that access to the  Hashtable is synchronized on the table while access to the
HashMap isn't. You can add it, but it isn't there by  default.

Another difference is that iterator in the HashMap is fail-safe while the enumerator for the Hashtable isn't. If you change the map while iterating, you'll know.

And, a third difference is that HashMap permits null values in it, while Hashtable doesn't.

Source: http://www.allinterview.com/showanswers/67679.html
0
 
LVL 53

Accepted Solution

by:
Dhaest earned 2000 total points
ID: 24838649
Hashtable Class

Represents a collection of key/value pairs that are organized based on the hash code of the key.

http://msdn.microsoft.com/en-us/library/system.collections.hashtable.aspx
0
 

Author Comment

by:KaranGupta
ID: 24838660
So you mean hash mapping is key/ value pair
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 24838670
That's correct
0

Featured Post

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question