In most programming languages, dictionaries are preferred over hashtables. What are the reasons behind that?
HashTable:
Key/value will be converted into an object (boxing) type while storing into the heap.
Key/value needs to be converted into the desired type while reading from the heap.
These operations are very costly. We need to avoid boxing/unboxing as much as possible.
Dictionary : Generic variant of HashTable.
No boxing/unboxing. No conversions required.