What is the main difference between hash table and Dictionary?
Answer Posted / sunil kumar
Dictionary is a generic type, Hashtable is not. Now what that
means.You get type safety with Dictionary, because you can't
insert any random object into it, and you don't have to cast
the values you take out.
And also generic collections are a lot faster as there's no
boxing/unboxing
Again Hashtable also have to box/unbox, which may have memory
consumption as well as performance penalties.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
How to fetch a data from one table to another table in asp.net ?
What is the question mark in a url?
Is asp.net 64-bit enabled? How?
Mention few asp.net validators.
What is the asp.net control toolkit?
How to do state management in ASP.NET?
Explain Authentication mechanism in dotnet
How can we communicate with each server in N-tier Architecture? and what are the methods?
How to add DateTime Control in normal DataGrid Server Control?
Explain weak typing and strong typing.
What is the difference between a page theme and a global theme?
Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?
What is asp.net introduction?
What are query strings used for?
What is view state and how it works in asp net?