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
What is a predicate in c#?
What is the use of 0 in c#?
Can a class or a struct have multiple constructors?
What is datagrid c#?
Describe a Struct ?
update data in an xml file which resides in solution itself, using silverlight 4.0
What is anonymous method in c#?
Is a char?
What are the different types of classes in c#?
What exactly is serverless?
Is hashset ordered c#?
Can the nested class access, the containing class. Give an example?
What is assembly and dll in c#?
Name any three ways to pass parameters to a method in c#?
What is generic delegate in c#?