[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
array.length
Ich habe noch einmal in der Spezifikation nachgelesen:
> The members of an array type are all of the following:
>
> + Members inherited from its implicit superclass Object
> + The field length, which is a constant (final) field of
> every array; its type is int and it contains the number
> of components of the array
Mit members sind hier Methoden und Variablen (fields) gemeint.
In Wahrheit ist length also eine konstante Instanzenvariable
des Arrays.
Sorry.
Bernd