摘要: return new String(result, 0, len + resultOffset); 所以底层new 了一个新的字符串并且返回。 因为0x0003 不等于0x0002 ,所以返回false,如果是equals 则返回true 因为== 比较的是地址。 equals 比较的话 先比较地址 阅读全文
posted @ 2023-01-07 16:15 八英里 阅读(14) 评论(0) 推荐(0) 编辑