While this JVM produces the desired effect because it does get the classes loaded before they're needed, it's uncertain whether the behavior shown is precisely correct. Because it eliminates the method call, it's also more efficient. Class literals work with regular classes as well as interfaces, arrays, and primitive types. In addition, there's a standard field called TYPE that exists for each of the primitive wrapper classes. TYPE char.class Character.
TYPE short.class Short.
TYPE float.class Float. TYPE double.class Double. TYPE void.class Void. The Class object representing the type of your object. The Class object can be queried for useful runtime information.