An attribute is another term for a field. It’s typically a public constant or a public variable that can be accessed directly . In this particular case, the array in Java is actually an object and you are accessing the public constant value that represents the length of the array.
Read moreAre attributes and variables the same thing?
Variable means the measured values can vary anywhere along a given scale. Attribute data, on the other hand, is qualitative data that have a quality characteristic or attribute that is described in terms of measurements.
Read more