原本程序就是“Program is information,which is Bits in Context”程序原本是混沌不开,面向对象就像盘古开天地的大板斧。一下把行为和数据分的很清楚。int本是组织数据的类型,但是又衍生了操作,如何组织就出现了有操作行为的Integer。
学习下google搜到一条信息The .class keyword was added in Java v1.1 so that there would be consistency in getting to the Class objects representing both primitive types and class types. The .TYPE field of the various object wrapper classes of primitive types allows you to "go backwards" to get to the Class of the primitive type which that object wrapper "wraps". We have int.class == Integer.TYPE and Integer.class == (new Integer(0).getClass()). So, for consistency and simplicity, use the .class keyword to get the Class object.
java中的Integer就是int的包装类,它定义的变量就是对象类型了,有属性和行为