Difference Between Array and Collection
The main Difference Between Array and Collection is Array is fixed in size but collection is grow-able in nature you can change it's size according to requirement.
Some important differences are;
- Array have fixed size but collection grow-able in nature.
- Array can hold both primitive data and object but collection hold only object.
- Arrays can hold only homogeneous elements.
- Collections can hold both homogeneous and heterogeneous elements.
- In Array , there are no underlined Data Structures, whereas ,Collection has Underlined DS.
- Array is recommended in performance , whereas Collection is not.
- Array use more memory space compare to Collection.
For more detail know about Difference Between Array and Collection you can visit our website;
No comments:
Post a Comment