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
Published on 07-Feb-2018 05:24:51
Advertisements