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


Please Help Members By Posting Answers For Below Questions

What are most desktop applications written in?

475


What is the ouput of the following program?

567


What is the difference between C# 3.5 and C# 4.0?

538


What are sorted lists?

506


What are scriptable objects?

506






Are arrays immutable c#?

519


What is the usage of OLE?

586


Can we inherit private members of class in c#?

581


What is strong name in c# and how can we use it?

539


Is var a data type?

505


Why do we need properties in c#?

495


Is multiple inheritance possible in c#?

561


Explain the difference between directcast and ctype.

453


What is the difference between ienumerable and enumerator?

448


I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.

1460