public java.lang.String toString(){
  return getName() + " class";
}

public java . lang . String toString ( ) { return getName ( ) + " class" ; }
converts the object to a string . the string representation is the string " class " or " interface " , followed by a space , and then by the fully qualified name of the class in the format returned by getname . if this class object represents a primitive type , this method returns the name of the primitive type . if this class object represents void this method returns " void " .
