Collection Framework
Why there is need of collection framework ?
Limitation of Array :
1. Fixed in Size - If we give less size then we can't expand it at run time, If we give more space then unused space will be of no use.
2. They are Homogeneous in type, we can only store similar type of data into an Array.
3. There is underlying data structure behind this as a result of there is no additional supporting methods are available.
Collections are grow able in nature.
Note : Arrays are highly recommended because of its high performance but memory wise collections are good.
What is Collection ?
Group of individual object as a single entity.
Java provides several classes and interfaces to achieve this also know as Collection Framework.
No comments:
Post a Comment