Freshers Aptitude technical questions
Freshers Job Alert
Bookmark and Share

•  Diff between Collection & Array

Collection is an Object, Where Array is homogenous group of data item. To use collection one need to instantiate a Collection object, for Array, it requires a declaration. For collection, data item can be deleted/removed at any particular index. For an array we can define a lower bound.

1. A collection objects uses less Memory than an array.
2. It provides methods to add and delete members.
3. It does not required reason statement when objects are added or deleted.
4. It does not have boundary limitations.