Array's length is an int field, but String (and other objects) usually use a getter method.
Do note that the difference in the two lies in the fact that a string's "length" is simply the amount of information it already stores in its internal char array, but an array's length field is just its capacity.