What is a class literal in Java?

Class<String> c = String.class;

Check out the Javadoc for java.lang.Class to see what you can do with one of these little guys – mostly related to reflection

Leave a Comment