4 ms·
It's interesting, as they're a core language feature that isn't in the java.lang package. Obviously it's not harming anything that they're not.
by kmontrose 14y ago
It's interesting, as they're a core language feature that isn't in the java.lang package.
Obviously it's not harming anything that they're not.
- wunderland 14y agoI 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.