Advantages and disadvantages of arrays in Java

Java 8Object Oriented ProgrammingProgramming

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.

raja
Updated on 17-Jun-2020 07:50:41

Advertisements