What is the difference between Hash Table and Arrays?

Answer Posted / kalidoss

Basically both are used to store the data,but the array is
the collection same object which is accessed by index or
supscript,but in hash table we can store different type
object like a structure but hastable follows two fields,
one is hash key another one is value.The value will be
fetched from hashtable by hash key but sometime hash key
might be string

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to create a user control with name and surname as data members and login as method and also the code to call it. (Hint use event delegates) Practical Example of Passing an Events to delegates

690


What is virtual class in C#?

756


What are the collections in c#?

684


Describe ways of cleaning up objects in c#.

693


Is arraylist type safe in c#?

721


Can you instantiate an abstract class c#?

700


code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.

1962


what is an event? Define delegate?

754


What is attribute and reflection in c#?

692


What is autopostback in c#?

697


Where is c# compiler located?

698


What is the difference between abstract and abstraction?

663


What is serialization and deserialization in c# with example?

684


hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?

1308


What is expression tree in c#?

702