Skip to content

Glossary: Data Structures and Algorithms in Java

interface

Also written: interfaces

A set of methods a class promises to provide, such as `List`, `Map` and `Deque`. You declare a variable with the interface type and create a class that implements it, like `ArrayList`, `HashMap` or `ArrayDeque`.

Where the book teaches it

Related terms

ArrayListDequeComparable