What is the difference between Hash table and Array list?

 

1. HashTable is a collection of objects which store values based on key where as ArrayList is just a collection of objects stored based on index.


 2.  Retrieving value from HashTable is faster as it is linked with key whereas it is difficult in case of ArrayList value is fetched with index but insert elements in some cases the ArrayList is quicker than the HashTable.


 3. HastTable is used for maintaining huge data.


4. Array List is a List and Hash Table is a map.

5. ArrayList is an ordered Collection of objects, the objects will be in the same order that you use to add them to the ArrayList.