Hai all,
Difference between array list and hash table?
Waiting for answer
Thanks
Difference between array list and hash table?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Hai all,
Difference between array list and hash table?
Waiting for answer
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Ta As6 reputationPosted Jun 7, 2012, 4:48 AM EDT
Satyapriya NayakRank #47 · 31.5K reputationPosted Jun 7, 2012, 7:08 PM EDT
Array List
1.Array List is a List.
2.In Array list we can only add items to the list.
3.Here we Can Add any datatype value,Every item in Arraylist is treated as object.
4.Index Numeric.
5.Data in Arraylist is stored in as only the value.
6.Slow when come to search
Hash Table
1.Hash Table is a map.
2.In Hashtable we can add data with the key.
3.Retrieving by key in Hashtable is faster than retrieving in Arraylist.
4.Index can be string also.
5.Data in Hashtable is stored in the key-value pair.
6.Fast when searching.
Thanks
Nitin Jain31 reputationPosted Feb 6, 2013, 12:46 AM EST