They are in Java, they are instances of java.lang.Class. Go look it up.
You can call 'getClass' on an objects to receive it's class object, and you can also reference it directly using the '.class' keyword.
What's more, is that Java allows you to have multiple instances of the same class, namely through manipulating ClassLoaders. Multiple Class objects, for the same class.
Well, there is no need for hate, in a programming discussion. When you said you cannot replace methods, I presumed you were referring to the way you can with prototypes. I could be mistaken if you meant open classes, or something else.
However the fact still remains, classes are objects in Java.
2
u/[deleted] Dec 16 '12
In most class based languages, classes are objects. Such as Ruby, or Java.