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 are synchronous and asynchronous operations?

987


Which language is used for desktop application?

959


Can you explain template pattern?

1038


Why do we need structs in c#?

866


Name the control which cannot be placed in mdi?

888


Explain the process of inheriting a class into another class?

995


What's the implicit name of the parameter that gets passed into the set method/property of a class?

1001


Why delegates are type safe in c#?

897


Is lazy t thread safe?

949


How is a strongly-named assembly different from one that isn’t strongly-named?

1055


what is the difference between .dll and .exe

1042


If you want to convert a base type to a derived type, what type of conversion do you use?

961


how to prevent a class from being inherited in c#.net?

991


What are the steps to make an assembly to public?

987


1. Describe page life cycle?

2112