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

Can I call a virtual method from a constructor/destructor?

468


What is the difference between dynamic and var in c#?

454


What are events in C#?

550


How to put assembly in gac?

535


Are enums static c#?

493






Is array a collection c#?

517


How will you get the different language strings?

503


Can we inherit class that contains only one private constructor?

509


What is the use of tryparse in c#?

457


What are the concepts of dispose method?

482


What is the difference between interface and inheritance in c#?

460


Is the following code legal?

554


Why do we still see so much non-oo code written in c# today?

478


What is the differences between datagrid, datalist and repeater in .net?

473


Define c# i/o classes? List the commonly used classes?

536