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
What is difference Between Authentication and authorization?
What is the difference between a cookie and a pixel?
What is the use of HttpHandlers? When to use this?
To load your generated dataset with data which method do you invoke?
In order to get assembly info which namespace we should import?
Distinguish between Server-side and Client-side code?
How to implement role based security in asp.net mvc? : Asp.Net MVC
3. What goals do you have in your career?
What is view state and how it works in asp net?
What is the default Orientation property in a Menu control?
Explain weak typing and strong typing.
What is a windows service?
Please brief not about xsd,xslt & xml?
What is a pixel url?
What is asp.net with mvc? : Asp.Net MVC