I've read before that Java classes are instances of the class Class. But now, my computer science teacher says that Java classes are not objects.
Class
Which is true?
A Java class is not an object.
However, every Java class has an instance of the Class class describing it. Those instances are objects.
1.4m articles
1.4m replys
5 comments
57.0k users