What is the use of Collections in Java | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

What is the use of Collections in Java

16th Oct 2016, 5:48 PM
Shafiya Nizam
2 Respostas
+ 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.
17th Oct 2016, 2:36 AM
Sachin Kulkarni
Sachin Kulkarni - avatar