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

Explain the access modifiers in c#?

493


What is sqldataadapter in c#?

491


How can I process command-line arguments?

532


Why do we use readonly in c#?

493


Why c# is called type safe language?

465






How is a loop recorder monitored?

508


Can main method be final?

474


Is null == null c#?

480


Explain the process of inheriting a class into another class?

493


In .Net, what is an assembly? Also explain the type of assembly.

519


What are delegate methods?

470


What is the use of convert toint32 in c#?

529


Is it possible to have a static indexer in c#?

546


If you want to convert a base type to a derived type, what type of conversion do you use?

487


What does void do in unity?

532