Not. A class is not an object because the object is an instance of the class. Objects are derived from a class, so we cannot say that a class is an object.
If we consider the whole class as an object for another class, we still cannot call it an object . Because, as soon as we create a class, it will be a Class until it is deleted.
You can also find the answer to this question in this link. Are Java class objects?
source share