Java学习 - 获取变量类型
public class Demo02 { public static void main(String[] args) { short a = 10; a++; System.out.println(getType(a)); //java.lang.Short a+=1; System.out.println(getType(a)); //java.lang.Short