Collection Framework:- Collection is a well design set. if classes and interface are sorting and manipulating a group of data as a single unit is called collection. OR A set of classes and interfaces which can be used for representing a group of object as single is called Collection Framework.
Collections :- Collection is an utility classes to define several utility methods for collection implemented class object.
Basic interface of collection classes are
1). List
2). Set
List is an ordered collection and it contain duplicate value.
Set is an collection that doesn`t contain duplicate value.
Q. What is difference between array and collection?
A. Array is fixed in size one`s we initialize then we can`t increase or decrease at the time of requirement. but Collection is growable in nature hence the requirement it can be increase or decrease.
At memory point of view Array is not recommended but Collection is recommended.
At performance point of view Array is recommended to used But Collection is not Recommended.