0% found this document useful (0 votes)
20 views1 page

1

Uploaded by

visitsdf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

1

Uploaded by

visitsdf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1) What is the Collection framework in Java?

Collection Framework is a combination of classes and interface, which is used to store


and manipulate the data in the form of objects. It provides various classes such as
ArrayList, Vector, Stack, and HashSet, etc. and interfaces such as List, Queue, Set, etc.
for this purpose.

Arrays are always of fixed size, i.e., a user can not increase or decrease the length of
the array according to their requirement or at runtime, but In Collection, size can be
changed dynamically as per need.

Arrays can only store homogeneous or similar type objects, but in Collection,
heterogeneous objects can be stored.

Arrays cannot provide the ?ready-made? methods for user requirements as sorting,
searching, etc. but Collection includes readymade methods to use.

You might also like