Solved

.net supports hash mapping

Posted on 2009-07-13
4
195 Views
Last Modified: 2013-11-08
HI


What is hash mapping? Does .net supports hash mapping.
0
Comment
Question by:KaranGupta
  • 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 500 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now