Java Collections Framework

The standard library's set of interfaces and classes for groups of objects, chiefly List, Set and Map, and their implementations.

In more detail

The interfaces describe behaviour: a list keeps order and allows duplicates, a set keeps unique members, a map looks values up by key. Declare fields and parameters with the interface, and choose an implementation such as ArrayList or LinkedHashMap for its performance and ordering. Most collections are mutable, so decide who owns each one.

Related terms

Taught in

References