What is the differnce between Array and Hash Table?

Answers were Sorted based on User's Feedback



What is the differnce between Array and Hash Table?..

Answer / pramodgupta20

1.Array can store same type of data While Hash Table can
store different type of data.

2) Hash table store data as name,value pair. while in array
only value is store.

3) to access value from hash table, you need to pass name.
while in array, to access value , you need to pass index
number.

Is This Answer Correct ?    70 Yes 1 No

What is the differnce between Array and Hash Table?..

Answer / mohit jethva

Array can not contain diffrent type of object where in hash table you can store it.

Is This Answer Correct ?    15 Yes 2 No

What is the differnce between Array and Hash Table?..

Answer / ankit,abhishek

array is the collection of similar datatype while hashtable
is collection of different data type.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Sharp Interview Questions

the c# keyword .int. Maps to which .net type?

0 Answers   Siebel Systems,


What is the difference between iqueryable and ienumerable?

0 Answers  


What is the difference between ienumerable and iqueryable?

0 Answers  


What's the difference between System.String and System..StringBuilder in C#?

0 Answers   PUCIT,


what does static void Main(string[] args) in C# mean????????

5 Answers   ssinformatics,


Is clr a compiler?

0 Answers  


What is data binding with example?

0 Answers  


What are the Types of optimization and name a few and how do u do?

0 Answers   BirlaSoft,


What is the difference between System.console.WriteLine() and System.console.Write() function?example?

0 Answers   HCL,


What is the difference between static and constant variables?

0 Answers   Accenture,


What are partial classes and use of partial classes?

0 Answers   QuestPond,


Why do we use inheritance in c#?

0 Answers  


Categories