Kunal Dawn

Leave a comment

Java Collections

1. Java Collections

A Java collection is a data structure which contains and processes a set of data. The data stored in the collection is encapsulated and the access to the data is only possible via predefined methods.

For example if your application saves data in an object of type People, you can store several Peopleobjects in a collection.

While arrays are of a fixed size, collections have a dynamic size, e.g. a collection can contain a flexible number of objects. Continue reading