1Advantage of Java Array
2Code Optimization: It makes code optimized, we can
3retrieve/sort the data easily.
4Random access: We can get any data located at any
5index position.
6
7Disadvantage of Java Array
8Size Limit: We can store only fixed size of elements in
9the array. It doesn't grow its size at runtime. To solve this
10problem, collection framework is used in java.
11
1Size Limit: We can store only fixed size of elements in
2the array. It doesn't grow its size at runtime. To solve this
3problem, collection framework is used in java.
4