0
What is the use of Collections in Java
2 Answers
+ 1
A collection â sometimes called a container â is simply an object that groups multiple elements into a single unit. Collections are used to store, retrieve, manipulate, and communicate aggregate data. Typically, they represent data items that form a natural group, such as a poker hand (a collection of cards), a mail folder (a collection of letters), or a telephone directory (a mapping of names to phone numbers). If you have used the Java programming language â or just about any other programming language â you are already familiar with collections.