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 ispostback c#?
Why generics are used?
How do you type a null character?
What is different about switch statements in c#?
Explain publishers and subscribers in events.
Explain the constructor in c#.
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
What is the difference between writeline and write in c#?
what happens if you inherit multiple interfaces and they have conflicting method names?
Explain how obfuscator works in .net
What is constants in c#?
What is the difference between System.console.WriteLine() and System.console.Write() function?example?
What do you mean by “finalize” and “finally” methods in c#?
What is generic collection in c#?
What is a clr (common language runtime)?