java Array.length property
[Edit] let me explain better:D
If you create an array of primitive types for example:
int foo = new int;
You can call the property .Length on this array. I wanna know how that is possible? Where does the length property come from? I know its not from Object and i know there isnt a "real" Array class...
Anyway i was discussing it with people and what we think that happens is that the compiler implicitly creates an array object with a length property for you. But we arent sure, we couldnt find another way to explain it. Anyway we want to be sure the happens, or something else happens.
One of the things is, if its implicitly done, will it be compile time or runtime since you might not know the length at compiletime yet...
Anyway i hope somebody can help me.