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.
2.1m questions
2.1m answers
60 comments
57.0k users