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

Which technology is best for desktop application?

444


Can we customize the serialization process?

532


What is difference between property and variable in c#?

477


How many destructors can a class have?

599


How do I open the console window?

581






How are delegates chosen?

468


Why would you use a class property in c#?

520


What is the importance of closing an ado.net application?

488


What is gac? How to put assembly in gac?

565


What is dependency injection in simple words?

514


Explain the difference between // comments, /* */ comments and /// comments?

507


Give some examples for built in datatypes in c#?

560


What are the different states of a thread?

541


What do you mean by abstract class in c#?

508


What are the uses of namespaces?

610