In Java, it is possible to get a String representation of a class by calling the Class.getName()
method.
Since Java 1.5 (AKA Java 5), it has been possible to get the canonical name using Class.getCanonicalName()
.
Joining LinkedIn
8 hours ago