What is the difference between Hash Table and Arrays?

Answer Posted / navin chandra pandit

Hash table & Arrays both are collection but the main diff. is
that- Hash Table follows hashing technique, means it has two
parts-one is hash code while second is value corresponds to
the hash code. To access a value from hash table, we use the
hash code. While array has only value part. To access a
value from array, we use index no. generally.

Is This Answer Correct ?    42 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between “finalize” and “finally” methods in c#?

726


What are c# collections?

702


What does addressof operator do in background ?

813


What is the reason behind the invention of c#?

851


Can we write class inside a class in c#?

735


Is it possible to have different access modifiers on the get/set methods of a property in c#?

809


Which is faster dictionary or hashtable?

671


Can I do things in il that I can't do in c#?

740


What is .net c#?

681


Is c# and c same?

697


write a C# Program add two matrix ?

786


Can you use all access modifiers for all types?

758


Explain About delegates

834


What is get set in c#?

771


What is difference between yielding and sleeping?

677