1、装箱:将基本数据类型转换为对象。 Integer num = Integer.valueOf(100)。 2、拆箱:将对象转换为基本数据类型。 Integer total = num.intValue();