I understand what wrappers are, but from the documentation you seem to be able to get an instance of an object of a class of type int. Does this return a wrapper or any instance of an int class? Because it would not make sense if it happened, due to generics and erasure of styles. Isn't it true that you can only get class instances of actual classes, not primitives? When they say do they represent the shell of something else?
This is what JavaDoc says and why I got confused
TYPE
public static final Class TYPE
The Class instance representing the primitive type int.
Since:
JDK1.1
source
share