Mega Code Archive

 
Categories / Java Book / 008 Reflection
 

0413 Find out the name

String getCanonicalName() Returns the canonical name of the underlying class as defined by the Java Language Specification. String getName() Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this Class object, as a String. String getSimpleName() Returns the simple name of the underlying class as given in the source code