基本类型在栈中进行分配,而对象类型在堆中进行分配。
基本类型包括: int long byte float double char boolean short
对象类型包括: Integer Long Byte Float Double Character Boolean Short
不同类型数据之间的比较,会返回不同的值。
基本类型在栈中进行分配,而对象类型在堆中进行分配。
基本类型包括: int long byte float double char boolean short
对象类型包括: Integer Long Byte Float Double Character Boolean Short
不同类型数据之间的比较,会返回不同的值。