Array
What is an array?
An array is an indexed collection of fixed number of homogenous data
elements.
Index
11 1 21 042233310
0 4 4 5321 6
Conclusions
• Total number of elements = 7
• Index starts from = 0
• Index lasts on = total_number – 1;
Since Array is index based so retrieval of data is very easy in array.
Limitations of Array
1. Fixed in Size
2. Not good for memory management.
3. Not much ready made methods are available.
4. Homogenous data members.
5. Contains primitive and objects.
6. Performance wise - good
Thank you !!!

Array

  • 1.
  • 3.
    What is anarray? An array is an indexed collection of fixed number of homogenous data elements. Index 11 1 21 042233310 0 4 4 5321 6
  • 4.
    Conclusions • Total numberof elements = 7 • Index starts from = 0 • Index lasts on = total_number – 1; Since Array is index based so retrieval of data is very easy in array.
  • 5.
    Limitations of Array 1.Fixed in Size 2. Not good for memory management. 3. Not much ready made methods are available. 4. Homogenous data members. 5. Contains primitive and objects. 6. Performance wise - good
  • 6.