Home > Software > .NET > Dot-Net
Interview Questions   Tutorials   Discussions   

Dot-Net - What is difference between Array and Hash Table?




216
views
asked mar October 4, 2014 05:54 AM  

What is difference between Array and Hash Table?


           

1 Answers



 
answered By siddhant   0  

Hashtable in C# represents a collection of key/value pairs which maps keys to value. Any non-null object can be used as a key but a value can. We can retrieve items from hashTable to provide the key . Both keys and values are Objects.

Arrays are using for store similar data types grouping as a single unit. We can access Array elements by its numeric index. The array indexes start at zero. The default value of numeric array elements are set to zero, and reference elements are set to null .

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert