In java int, float and etc., are primitive types. Wrapper classes are used in case we need to use it with generics. But still the following declaration works in java,
<
A class literal is an expression consisting of the name of a class, interface, array, or primitive type, or the pseudo-type void, followed by a `.' and the token class.
represented as Class objects.
So System.out.println(int.class); will print int whereas System.out.println(Integer.class); will print class java.lang.Integer.