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.
- Code Optimization
- Performance increase
No comments:
Post a Comment