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 are synchronous and asynchronous operations?
Which language is used for desktop application?
Can you explain template pattern?
Why do we need structs in c#?
Name the control which cannot be placed in mdi?
Explain the process of inheriting a class into another class?
What's the implicit name of the parameter that gets passed into the set method/property of a class?
Why delegates are type safe in c#?
Is lazy t thread safe?
How is a strongly-named assembly different from one that isn’t strongly-named?
what is the difference between .dll and .exe
If you want to convert a base type to a derived type, what type of conversion do you use?
how to prevent a class from being inherited in c#.net?
What are the steps to make an assembly to public?
1. Describe page life cycle?