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

 Posted by Pandurangpawar7 on 9/26/2015 | Category: ASP.NET Interview questions | Views: 417 | Points: 40
Answer:

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


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response

More Interview Questions by Pandurangpawar7