Google News
logo
Java - Interview Questions
What are the drawbacks of the arrays in java?
The main drawback of the arrays is that arrays are of fixed size. You can’t change the size of the array once you create it. Therefore, you must know how many elements  you want in an array before creating it. You can’t insert or delete the elements once you create an array. Only you can do is change the value of the elements.
Advertisement