General question

While reading some Java stuff, I came across " . . . arrays in Java are first class objects."But the author didn't give any frame of reference.What else is considered a first class object and what might be a second or third class object?Thank you.
[276 byte] By [NewB@Foruma] at [2007-10-3 8:29:24]
# 1

I don't think there are any "second or third class" objects in Java. Something's either an object or it's not. Arrays are.

I suppose you could argue that classes are "second-class objects," depending on how you define that term. A java class is not itself an object in the java language, but it is represented by an instance of the Class class that contains metadata. Likewise methods, etc.--through reflection you can get hold of objects that represent these concepts, but the methods themselves are not objects.

jverda at 2007-7-15 3:36:15 > top of Java-index,Java Essentials,New To Java...