Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is a predicate in c#?

919


What is the use of 0 in c#?

1013


Can a class or a struct have multiple constructors?

956


What is datagrid c#?

939


Describe a Struct ?

1035


update data in an xml file which resides in solution itself, using silverlight 4.0

1756


What is anonymous method in c#?

877


Is a char?

863


What are the different types of classes in c#?

945


What exactly is serverless?

832


Is hashset ordered c#?

953


Can the nested class access, the containing class. Give an example?

873


What is assembly and dll in c#?

941


Name any three ways to pass parameters to a method in c#?

916


What is generic delegate in c#?

919