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
if you do have a stack overflow profile.what is your ranking?
How do I trim a space in c#?
For read-only operation which property you have to designated?
How do you declare a method in c#?
I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?
What is the difference between returning iqueryable vs ienumerable?
How do I do implement a trace and assert?
how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used
What is difference between ienumerable and ienumerator in c#?
What is tuple in c#?
Give an example of a directcast.
What is nameof c#?
Is inheritance possible in c sharp?
Why do we need abstraction in c#?
What is the advantage of singleton class?