What is the difference between a Hash Table and a Dictionary?



What is the difference between a Hash Table and a Dictionary?..

Answer / hrindows@gmail.com

The main differences are listed below.

Dictionary:
Returns an error if the key does not exist
No boxing and unboxing
Faster than a Hash table

Hashtable:
Returns NULL even if the key does not exist
Requires boxing and unboxing
Slower than a Dictionary

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What is the use of ErrorProvider Control in .NET?

2 Answers  


Explain what is an application domain?

0 Answers  


What are object pooling and connection pooling and difference?

3 Answers   TCS,


Explain the use of ‘this’ keyword in Java?

1 Answers  


Describe the difference between inline and code behind which is best in a loosely coupled solution?

1 Answers  






Is there built-in support for logging?

0 Answers  


Explain is the jit an interpreter?

0 Answers  


What are three common acronyms used in .net, and what do they stand for?

0 Answers  


What is the purpose of delegates in .net?

2 Answers  


Tell us why do we use the “using” statement?

0 Answers  


What is an assembly? What are the different types of assemblies?

0 Answers  


Explain constructor.

2 Answers   Wipro,


Categories