Originally posted by Gitesh Ramchandani:
Long and Integer are subclasses of Number class. So they are not related to each other, in other words, you cannot cast a Long array to an Int array.
Actually, this has nothing to do with the Long and Integer classes -- we are discussing int and long (primative).
int arrays and long arrays are objects, even though their elements are not. And they both subclass from the Object class.
Henry