•array is the one which can save similar data typed elements.And the size is limited. arraylist is a collection which is capable of saving different data typed objects, And is growable.
•ArrayList can hold objects(custom...or...defined)
•It provides an overloaded method to perform binary search on its objects.
•Array is for homogeneous data. i.e data of same data type.
Whereas Arraylist is for Heterogeneous data.
No comments:
Post a Comment