# HashMap

say it: **“HASH MAP”** **/hæʃ mæp/**

A hash-based Map with no guaranteed iteration order.

## What is **HashMap** in Java?

**HashMap** — A hash-based Map with no guaranteed iteration order.

```java
import java.util.HashMap;
import java.util.Map;

class PriceList {
    Map<String, Integer> prices = new HashMap<>();
}
```

Level: Freelancer · [More Java terms at this level](https://www.ask-codey.com/glossary?category=java&level=4)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/hashmap
