岁月不败少年心

IP属地:北京
==比较的是引用对象的地址?
第一周课程备注1.基本数据类型在测试中需要注意的点 1.1 对象相等的比较(Integer) Integer,128==判断为false,equals判断为true Integer,127...
==比较的是内存地址和值,Intteger类如果取值在-128>=value<=127之间,在此区间的数值是在cache数组中获取,属于同一类型,所以Integer,127==判断为true,是这样理解吗?
第一周课程备注1.基本数据类型在测试中需要注意的点 1.1 对象相等的比较(Integer) Integer,128==判断为false,equals判断为true Integer,127...