Este dilema se puede resolver de variadas formas, pero nosotros te damos la que en nuestra opinión es la respuesta más completa.
Ejemplo 1: ventajas y desventajas de array
Advantage of Java Array
Code Optimization: It makes code optimized, we can
retrieve/sort the data easily.
Random access: We can get any data located at any
index position.
Disadvantage of Java Array
Size Limit: We can store only fixed size of elements in
the array. It doesn't grow its size at runtime. To solve this
problem, collection framework is used in java.
Ejemplo 2: desventajas de array
Size Limit: We can store only fixed size of elements in
the array. It doesn't grow its size at runtime. To solve this
problem, collection framework is used in java.
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)