Is an array a primitive type or an object (or something else entirely)?
问题 The question is basically self-explanatory. I haven\'t been able to find an API for arrays (other than this Arrays, but this just defines a bunch of static helper functions for dealing with actual arrays). If there is no class for it, this seems to suggest that an array can\'t be an Object . However, the fact that an array has public fields like length and methods that it can invoke like .equals() and .clone() seem to suggest (very strongly) the complete opposite. What is the explanation for