I come from a php background and in php, there is an array_size() function which tells you how many elements in the array are used.
array_size()
Is there a similar
array.length final property
it is public and final property. It is final because arrays in Java are immutable by size (but mutable by element's value)