Java: Collection

By Xah Lee. Date: . Last updated: .

What is Collection

In Java, collection is a Interface for datatypes that's list-like. In other languages called {list, array, vector, tuple}.

The full name is java.util.Collection

Note: “collection” and “map” are different interfaces, but sometimes the word “collection” informally mean both.

What is Map

Methods of Collection Interface

The collection interface has methods like the following.

Children of Collection Interface

The Collection interface has the following children. Each of these interface is more specialized list-like type. (don't forget, these are all interfaces.)

Implementations of Collection Interface

The following are classes that implements the collection interface.