Why is Class<?> preferred to Class
If I declare a Class as a field: Class fooClass; Eclipse gives me the warning: Class is a raw type. References to generic type Class should be parametrized What does this mean in practice? and why am I urged to do it? If I ask Eclipse for a "quick fix" it gives me: Class<?> fooClass; which doesn't seem to add much value but no longer gives a warning. EDIT: Why is Class generic? Could you please give an example of parameterization, i.e. could there be a valid use of something other than <?> ? EDIT: WOW! I had not realized the depths of this. I have also watched the Java Puzzler and it's