Class Class: Selected methods


 o public String getName()
Returns the fully-qualified name of the type (class, interface, array, or primitive) represented by this Class object, as a String.
 o public static Class forName(String name) throws ClassNotFoundException
Returns the Class object associated with the class with the given string name.
 o public boolean isInstance(Object other)
This method is the dynamic equivalent of the Java language instanceof operator.
 o public Object newInstance() throws InstantiationException, IllegalAccessException
Creates a new instance of a class.
 o public String toString()
Converts the object to a string.
 o public Class getSuperclass()

Java Tutorial - Standard Classes Jens Trapp, 1997