Title: Map Interface
Course: CPS 189: Java Certification - Review, Practice & Prepare (Development) > Section: (OLDstyle) Learning Modules

Map Interface

A map is an object that maps keys to values.

A map cannot contain duplicate keys.

The Map interface provides methods for:

- Adding, getting, and removing elements.
- Adding and clearing all elements.

The Map interface provides three views of its data:

- As a set of keys.
- As a set of values.
- As a set of key-values.

HashMap, TreeMap, and LinkedHashMap are implementations of the Map interface.

For more information, see:

- The Map Interface
- Level 1 Study Materials: Unit 2
- Level 1 Study Materials: Unit 10