摘要:装箱和拆箱:装箱是将值类型转换为引用类型,反之,将引用类型转换为值类型称为拆箱。java JDK 1.5 提供了基本数据类型的自动装箱和拆箱 auto Boxing/unBoxingpublic class AutoBox {public static void main(String[] args){ Integer iObject = 3;//Auto Boxing System.out.println(iObject + 12);// unboxing Integer a = 3; Integer b = 3; System.out.println(a==b);//true Inte..
阅读全文
posted @ 2013-11-28 23:23
浙公网安备 33010602011771号