5. 17. 1. Getting java.lang.Class: Information about your object
public class MainClass { public static void main(String[] a) {
String country = "Canada"; Class myClass = country.getClass();
System.out.println(myClass.getName());
}
}
java.lang.String
5. 17. Class Object
5. 17. 1.
Getting java.lang.Class: Information about your object