Saturday, 20 February 2016

Advantages of array in java

Array is collection of similar kind of data. Array in java is index based , first element of the array is stored at 0 index.










Benefits (Advantages) of array:-


Arrays permit efficient (constant time) random access but not efficient insertion and deletion of elements. 

Consequently, arrays are most appropriate for storing a fixed amount of data which will be accessed in an unpredictable fashion. 

  1.  Code Optimization
  2.  Performance increase

No comments:

Post a Comment