the primitive array int[] arrayInt = new int[] {1,2,3,4}, i think here it is considered as single array object. But in case of wrapper array each elements are cosidered as objects,
I am also not sure about it, i came to conclusion based on retrun type of Arrays.asList method in both the cases generated by eclipse IDE.
SCJP 1.5 94%.
The greatest glory in living lies not in never falling, but in rising every time we fall.
Those are 4 different ints each shoved into Integer objects, that's 4 different objects, whereas arrayInteger is a single object, an array of Integers. If it's not a primitive it's an Object, that goes for arrays too. [ June 03, 2008: Message edited by: Taariq San ]