Infosys Interview Question

Why wouldn't you use a hash table.

Interview Answers

Anonymous

May 23, 2018

If you meant "why do we use the Dictionary class instead of the Hashtable class?", then it's an easy answer: Dictionary is a generic type, Hashtable is not. That means you get type safety with Dictionary, because you can't insert any random object into it.

Anonymous

Aug 28, 2012

Collisions.