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

Explain what is mutex?

0 Answers  


What are the different types of remote object creation mode in .net?

0 Answers  


Explain what inheritance is, and why it's important?

0 Answers  


State the differences between the dispose() and finalize().

0 Answers  


Garbage collector thread is what kind of a thread?

1 Answers  






What is "common language specification" (cls) in .net?

0 Answers  


What is interface and abstract class in .net?

0 Answers  


What is different between User Control and Web Control and Custom Control?

2 Answers  


what is yield keyword in .Net?

2 Answers  


What are object pooling and connection pooling and difference?

3 Answers   TCS,


Difference between user groups and code groups

0 Answers  


Explain me what is the difference between a class and an object, and how do these terms relate to each other?

0 Answers  


Categories