Collection framework is a set of classes and interfaces. It is referred as a collection, but it is used as a library for resusable collection data structures. Both arrays and collections function similarly as they both hold references to the objects and work as a group but the primary difference is that collections do not need to be assigned capacity when they are instantiated as collections can grow and shrink automatically as object are added or removed.
There are basically three types of collection: sets, lists and maps.