Register now or log in to join your professional community.
Class objects are constructed automatically by the Java Virtual Machine as classes are loaded and by calls to the defineClass method in the class loader.Every Object in Java belongs to a certain class. That's why the Object class, which is inherited by all other classes, defines the getClass() method