what is hash table
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Is it possible to delete duplicate rows in a table without using a temporary table ?
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.
What is the difference between referencing and joining?
what is diffence between replicaion and logshipping?
What is the use of group by clause?
What is the diffrence between update_one and auto_fix?
How to assign null values to variables or columns?
What is use of dbcc commands?
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...
What are distinctive joins find as a part of sql?
i need some interview questions on sql server developer plz any onee send some links.
Explain DBMS, RDBMS?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)