Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is hash table

Answers were Sorted based on User's Feedback



what is hash table..

Answer / kumaresh

1.Hashtable is a class which falls into System.Collections
namespace.
you can create object for hashtable. For example,
Hashtable hash = new Hashtable();

2.Key and value should be added to hashtable. For example,
hash.Add(1,"God");
hash.Add(2,"Human");

3.The key, value will be sorted automatically based on the
Hashcode generated[this operation is taken care by CLR].

4.GetHashCode() method is used to get the generated hashcode

5.While retrieving the hashtable values, you can use the
key tp retrieve the values. For example
foreach (DictionaryEntry item in hashTable)
{
Console.WriteLine("Key is {0}, Value is
{1}", item.Key,item.Value);
}
NOTE: if you add the same key into the hastable, it will
not throw any compliation error, but during runtime, it
will throw "ArgumentException" error.

Is This Answer Correct ?    19 Yes 4 No

what is hash table..

Answer / arun yadav

A hash table, or a hash map, is a data structure that
associates keys with values. The primary operation it
supports efficiently is a lookup: given a key (e.g. a
person's name), find the corresponding value (e.g. that
person's telephone number). It works by transforming the
key using a hash function into a hash, a number that is
used as an index in an array to locate the desired location
("bucket") where the values should be.

Is This Answer Correct ?    17 Yes 5 No

what is hash table..

Answer / krishna patil

Hashtable is used to stored temporary data,
The hash-table object contains items in key/value pairs, the key are used as indexs

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Explain what is dbcc?

0 Answers  


When to use Inner join & when to use subquery?

0 Answers   IBM,


can you anybody tell me the how can you restore the master database. while migraion(one server to onther server)?

1 Answers  


How to fetch the next row from a cursor with a "fetch" statement?

0 Answers  


difference between Clustered index and non clustered index ?

0 Answers   Infosys,


Is it possible to have clustered index on separate drive from original table location?

0 Answers  


How do I find sql server instance name?

0 Answers  


What are the new features in sql server 2016?

0 Answers  


What is database mirroring?

0 Answers  


How to display a past time in days, hours and minutes?

0 Answers  


how to get rank of diffrent student in same table based on newly inserted row in sql server2008

4 Answers   ABC,


Do you know what is replace and stuff function in sql server?

0 Answers  


Categories