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

Explain inheritance in c#?

895


What is the use of static in c#?

867


Define strong name in c#?

867


What does it mean to override a method?

899


How to use exception handling in stored procedure?

972


What is equal c#?

869


How are methods overloaded?

943


What is an assembly qualified name

972


Is java better than c sharp?

900


What is the meaning of console writeline in c#?

825


What is the default value of decimal in c#?

855


Is arraylist type safe in c#?

924


What is asax file in c#?

893


What is the use of regex in c#?

886


Is string a primitive data type in c#?

807