What are limitations of object arrays?

The main limitations of Object arrays are
-These are fixed in size ie once we created an array object there is no chance of increasing or decreasing size based on our requirement. Hence If we don’t know size in advance , arrays are not recommended to use
-Arrays can hold only homogeneous elements.
-There is no underlying data structure for arrays and hence no readymade method support for arrays. Hence for every requirement programmer has to code explicitly

To over come these problems collections are recommended to use

No comments:

Post a Comment