What does getName () do in Java?

getName. Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this Class object, as a String . If this class object represents a reference type that is not an array type then the binary name of the class is returned, as specified by The Java™ Language Specification .

Read more