Getting the Name of a Class or Member Object This example shows how to get the fully-qualified and non-fully-qualified name of a class and reflected objects. // Non-fully-qualified names. name = cls.getName().substring( cls.getPackage().getName().length()+1); name = field.getName(); name = constructor.getName().substring( cls.getPackage().getName().length()+1); name = method.getName(); // Fully-qualified names. name = cls.getName(); name = cls.getName()+"."+field.getName(); name = constructor.getName(); name = cls.getName()+"."+method.getName();