请问如何查看int的数据类型?
各位高手大家好: 
 如果String   str= "盛大 "; 
 我们可以用str.getClass().getName(); 
 来查看其数据类型 
 但是如果int   num=100; 
 我们则不能用str.getClass().getName(); 
 如果我们要想得到num的数据类型该如何做呢?
------解决方案--------------------把num改成Integer类型的
------解决方案--------------------int num=100; 
 Integer i=new Integer(num);
------解决方案--------------------楼上2为说的对呀,但我觉得int 和Integer 是不同的类型,,所以得出的类型也不是int 的类型呀。
------解决方案--------------------int是基本数据类型,和一般的对象不同。