What is the difference between Hash Table and Arrays?

Answer Posted / amit singh

Hashtable is not type safe while array is.
Boxing takes place while u store value in hastable.Because
hastable stores data as objects and when u retreive value
then unboxing takes plase.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c# easier than javascript?

519


Give some examples for built in datatypes in c#?

548


What is collection of classes in c#?

504


How to add a readonly property in c#.net

491


What is the purpose of a console table?

465






Define boxing and unboxing in c#?

471


4. Describe the process when we send a request URL? And who is responsible for that?

1480


Is struct object oriented?

471


what is difference between is and as operators in c#?

530


What are PE(Portable Executable)?

535


Structs are largely redundant in c++. Why does c# have them?

742


What are cshtml files?

483


What is the major difference between a custom control and user control?

553


What is interpolation in programming?

482


What are the 3 logical operators?

550