3 ms·
I don't understand. Didn't his test program output say that the superclass of the array class was java.lang.Object? I'm sorry if this is a stupid question. D
by wunderland 14y ago
I don't understand. Didn't his test program output say that the superclass of the array class was java.lang.Object? I'm sorry if this is a stupid question. Doesn't that mean that arrays are in java.lang?
- kmontrose 14y agoIf you go high enough up the inheritance tree everything goes back to java.lang.Object, so no. If java arrays were something completely distinct from objects (like the primitive types are/were) that would have been interesting, which is what I was checking the super class for there.