Java--装箱,拆箱

来源:互联网 发布:知道具体位置的软件 编辑:程序博客网 时间:2024/05/23 19:38

装箱:将基本类型转换为引用类型。例如int转换为Integer
拆箱:将引用类型转换为基本类型。例如Integer转换为int。

0 0