Difference between Arrays and Collections?
>> Thursday, May 26, 2011
Arrays:
Collections:
- They are fixed in size.
- With respect to memory arrays are not preferable
- Arrays shows very good Performance
- Can hold only Homogeneous data elements.
- Arrays can hold both primitive data types and objects
- They doesnot have any underlying datastructures.
Collections:
- Growable in nature.
- With respect to memory collections are recommended.
- It shows poor Performance.
- Can hold both homogeneous and Heterogeneous .
- They have underlying datastructure.
- Collections hold only Objects.
0 comments:
Post a Comment