filmov
tv
Map Example in Java | Team MAST

Показать описание
A map contains values based on key, i.e key and a value pair.
You will learn following about the HashMap:
1. A HashMap contains values based on the key.
2. It implements the Map interface.
3. It contains only unique elements.
4. It may have one null key and multiple null values.
5. It maintains no order.
You will learn following about the LinkedHashMap:
1. A LinkedHashMap contains values based on the key.
2. It implements the Map interface.
3. It contains only unique elements.
4. It may have one null key and multiple null values.
5. It is same as HashMap but maintains insertion order - The only difference between a LinkedHashMap and a HashMap.
You will learn following about the HashMap:
1. A HashMap contains values based on the key.
2. It implements the Map interface.
3. It contains only unique elements.
4. It may have one null key and multiple null values.
5. It maintains no order.
You will learn following about the LinkedHashMap:
1. A LinkedHashMap contains values based on the key.
2. It implements the Map interface.
3. It contains only unique elements.
4. It may have one null key and multiple null values.
5. It is same as HashMap but maintains insertion order - The only difference between a LinkedHashMap and a HashMap.