一般我们使用数值时,都是使用基本类型,如int.long等,但如果你喜欢使用Integer.Long的包装类,那有一点可就得注意了.先来看下这段代码: /** * * @author trytocatch@163.com * @date 2014-2-12 */ public class AutoBoxingTest { public static final Integer CONST_A = 1; public static final Integer CONST_B = Integer.v…