Why are Java arrays fixed length?

Viewed 5989
int[] array = new int[10]; // Length is fixed when the array is created.

The length of an array is established when the array is created. After creation, its length is fixed.

Why does it have to be so?

2 Answers
Related