Advantages and disadvantages of arrays in Java



Benefits

  • Easier access to any element using the index.

  • Easy to manipulate and store large data.

Disadvantages

  • Fixed size. Can not be increased or decrease once declared.

  • Can store a single type of primitives only.


Advertisements