As
Java doesn't allow you to change the array length
after initialization (int x[]=new int[2]),the length is a variable being initialized when you initialize your array.
To check that the length is a variable you can write a simple program and debug it.