java4all@1986 java. Powered by Blogger.

Difference between Arrays and Collections?

>> Thursday, May 26, 2011

Arrays:

  •  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

FaceBook Login

HTML/JAVASCRIPT

HTML/JAVASCRIPT

HTML/JAVASCRIPT

HTML/JAVASCRIPT

Total Pageviews

STATCOUNTER

  © Blogger template Simple n' Sweet by Ourblogtemplates.com 2009

Back to TOP