what is the difference between arraylist and hash table
using a simple program?
Answer Posted / digvijay
Hi,
Arraylist is a item collection of different datatypes.
Hashtable is a collection key value pair.
Array list is a list
In this we can add items to the list
Here we can add any datatype value, every item in arraylist
is treated as object
Hash table is a map
Here we can add data with the key
Retriving data in hash is faster then in array list.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Explain inheritance in c#?
What is the use of static in c#?
Define strong name in c#?
What does it mean to override a method?
How to use exception handling in stored procedure?
What is equal c#?
How are methods overloaded?
What is an assembly qualified name
Is java better than c sharp?
What is the meaning of console writeline in c#?
What is the default value of decimal in c#?
Is arraylist type safe in c#?
What is asax file in c#?
What is the use of regex in c#?
Is string a primitive data type in c#?