Collections in Java

One umbrella

Collections

The collections framework in java.util provides a number of generic classes for sets of data with functionality that can't be provided by regular arrays.

OR

The Collection in Java is a framework that provides an architecture to store and manipulate the group of objects.

Java Collections can achieve all the operations that you perform on a data such as searching, sorting, insertion, manipulation, and deletion.

A simple way to construct a List from individual data values is to use java.utils.Arrays method Arrays.asList :

Mapping Collections

Iterating over Collections

Iterating over List

Using Iterator

Iterating over Set

Iterating over Maps

Immutable Empty Collections

Last updated

Was this helpful?