Get Canonical Name for a java.lang.String in Java
Description
The following code shows how to get Canonical Name for a java.lang.String.
Example
//www . j a v a 2s . c o m
public class Main {
public static void main(String[] args) {
System.out.println(String.class.getCanonicalName());
}
}
The code above generates the following result.