---
title: "What is the difference between Hash table and Array list?"  
description: "What is the difference between Hash table and Array list?"  
author: "Tarun Kumar"  
published: 2017-11-15  
canonical: https://answers.mindstick.com/qa/30694/what-is-the-difference-between-hash-table-and-array-list  
category: "programming"  
reading_time: 2 minutes  

---

# What is the difference between Hash table and Array list?

What is the [difference](https://www.mindstick.com/blog/398/difference-between-object-type-and-var-type) between [Hash](https://www.mindstick.com/blog/12084/cloud-mining-blockchain-cryptocurrency-mining) [table](https://www.mindstick.com/articles/43918/how-to-design-table-using-bootstrap) and [Array](https://www.mindstick.com/articles/14/array) list?

## Answers

### Answer by Arti Mishra

## "Difference between HashTable and Array List"

**HashTable** \

- \ ![What is the difference between Hash table and Array list?](https://answers.mindstick.com/questionanswer/83a3155a-3861-4b45-8f91-d920018acaaa/images/b7d8eb34-f998-4155-b68c-360e3dd5acca.png)\ \ **\****Array List**

   - Hash Table is a **collection of an object in Key and Value pair.** And each object in the **Hash Table is stored in a Key and Value format.**
   - In Hashtable, **searching operation is much faster** than the array list.
   - For accessing of value in a hash table, you just need to **pass key name.**
   - It can **store different types of data like int, char, String, Boolean** etc.
   - In a hash table, the **size of an element is not defined.**
   - It stores a **unique key object**, in case of hash table **key can’t be duplicate.**
   - It is easily synchronized. And **Hashtable is similar to HashMap** which can store the value in key-value format.

- Array List is the **homogeneous collection of an element**. And it can **store each element in a particular index.**
- In Array list, **searching of the element is so difficult** in comparison to the hash table.
- For accessing of value in an array list, you need to pass index number.
- It can store only **similar types of element.**
- It is created with **initial (fixed length) size.**
- It can **store duplicate and dissimilar** types of element.
- It is **not easily synchronized.**

![What is the difference between Hash table and Array list?](https://answers.mindstick.com/questionanswer/83a3155a-3861-4b45-8f91-d920018acaaa/images/db170659-4f6e-4b76-8d6e-ac3db48075fc.png)**\**


---

Original Source: https://answers.mindstick.com/qa/30694/what-is-the-difference-between-hash-table-and-array-list

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
