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 Java: Map are different interfaces, but sometimes the word “collection” informally mean both.

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.

Implementations of Collection Interface

The following are classes that implements the collection interface.

Java, data structures, array, collection, map