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

Explain the process of inheriting a class into another class?

491


What is a base class in C#?

561


What is c# in asp net?

489


How can I get the ascii code for a character in c#?

568


Can a static class contain non static members?

553






What is an object and a class?

557


What is arraylist?

540


What is the difference between CreateObject() and GetObject()?

557


Explain About ADO and its objects

575


What is the symbol used for in c#?

497


What is interface inheritance?

533


Can you specify nested classes as partial classes?

512


Can we inherit sealed class in c#?

471


What is a event in c#?

464


What is lazy loading entity framework?

499