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
Does google use c#?
Why do we use virtual methods in c#?
What is the difference between as and is operators in c#?
What is the difference between constants and read-only?
What do you mean by directing?
What is array and its types in c#?
What is difference between arraylist and list in c#?
Explain the difference between const and static read-only?
What is the class in c#?
Is vs as c#?
Define delegation in .net?
if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.
What's the difference between System.String and System..StringBuilder in C#?
Is namespace necessary in c#?
What is the difference between ref and out in c#?