How can we get the information of the userdefind Object class?

public class MainClass {
public static void main(String[] a) {
String country = “Canada”;
Class myClass = country.getClass();
System.out.println(myClass.getName());
}
}
output
java.lang.String