Looking at source code of Integer class, just stumble at this below line
Class<Integer> TYPE = (Class<Integer>) Class.getPrimitiveClass("int");
And getPrimitiveClass
is a native method.
static native Class getPrimitiveClass(String name);
Why it became a native method ? really want to know.
How one can create an instance for Class
?? Does that differs with normal way of creating instance for ex : Ex e = new Ex()
?