Someone correct me if I am wrong but I think java treats an array as an object. That is to say, an array is a subclass of an Object and therefore inherits all the methods that the class object provides.
The int is the type of references your array can hold.
<nitpick>int is a primitive type. int holds ints, not references to ints.
Object arrays hold references to objecs.</nitpick>
There are no new questions, but there may be new answers.
Joined: May 12, 2008
True, I probably should have made that distinction but was afraid if I said "int is the type of value" it would be misleading or perhaps confusing later when you work with references to objects which is where this thread started.
I'll provide an example of what we mean just in case.
[ October 22, 2008: Message edited by: Paul Yule ]