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

Is it possible to delete duplicate rows in a table without using a temporary table ?

12 Answers   TCS,


SQL stops working in every 15 days displaying message that database log file is full. Log file size is 3.95 GB. It is happening after shrinking the database also. What is solution to overcome this problem. Please help me as it's urgent.

5 Answers  


What is the difference between referencing and joining?

1 Answers  


what is diffence between replicaion and logshipping?

1 Answers  


What is the use of group by clause?

0 Answers  


What is the diffrence between update_one and auto_fix?

3 Answers   IBM,


How to assign null values to variables or columns?

0 Answers  


What is use of dbcc commands?

0 Answers  


How to generate the Reports for the Database? I need an Example for it.Will we manually do this or else any script is there? Please let me know ASAP...

1 Answers   Cognizant,


What are distinctive joins find as a part of sql?

0 Answers  


i need some interview questions on sql server developer plz any onee send some links.

2 Answers  


Explain DBMS, RDBMS?

6 Answers  


Categories