Overview
The Java collections framework is a set of classes and interfaces that implement commonly reusable collection data structures.
Although referred to as a framework, it works in a manner of a library. The collections framework provides both interfaces that define various collections and classes that implement them.
Differences from Arrays
Collections and arrays are similar in that they both hold references to objects and they can be managed as a group. However, unlike arrays, Collections do not need to be assigned a certain capacity when instantiated. Collections can grow and shrink in size automatically when objects are added or removed.
Collections cannot hold primitive data types such as int, long, or double. Instead, Collections can hold wrapper classes such as , , or .
From Wikipedia (CC BY-SA 4.0).