Code Heaven For C# Developer

Wednesday, May 12, 2010

ArrayList And HashTable........

Array List..
1.Array List is a List
2.In this we can only add items to the list
3.Here we Can Add any datatype value,Every item in
arraylist is treated as object

Hash Table..
1.Hash Table is a map
2.Here we can add data with the key
3.Retrieving by key in Hashtable is faster than retrieving in
Arraylist


The ArrayList object is a collection of items containing a single data value.

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home