What is the differnce between Array and Hash Table?

Answers were Sorted based on User's Feedback



What is the differnce between Array and Hash Table?..

Answer / pramodgupta20

1.Array can store same type of data While Hash Table can
store different type of data.

2) Hash table store data as name,value pair. while in array
only value is store.

3) to access value from hash table, you need to pass name.
while in array, to access value , you need to pass index
number.

Is This Answer Correct ?    70 Yes 1 No

What is the differnce between Array and Hash Table?..

Answer / mohit jethva

Array can not contain diffrent type of object where in hash table you can store it.

Is This Answer Correct ?    15 Yes 2 No

What is the differnce between Array and Hash Table?..

Answer / ankit,abhishek

array is the collection of similar datatype while hashtable
is collection of different data type.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Can I define my own exceptions?

0 Answers  


How to throw an caught exception from cath block?

3 Answers   TCS,


What is console readkey ()?

0 Answers  


code to generate a excel sheet and to write data into it --- -it has to fetch the excel sheet which is in one folder placed by us inside a project folder(i,e it has to create a instance of that excel sheet) and write the data into it row by row please respond as early as possible

1 Answers  


List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

0 Answers  






What is the best method to fill the GridView. using SqlDataReader or Dataset and why

5 Answers   CA,


What is the difference between delegates and events in c#?

0 Answers  


Which are the access modifiers available in c#?

0 Answers  


What is the function of the not null constraint?

0 Answers  


Can we return two values from a function?

12 Answers   MD Synergy,


Can a structure be inherited by a class?

3 Answers  


How do you generate documentation from the C# file commented properly with a command-line compiler?

2 Answers  


Categories