【每日阅读】2020年09月02日-为什么 Java 中“1000==1000”为false,而”100==100“为true?

链接

https://mp.weixin.qq.com/s/kwXZrr7T5CQiLZ6LKZuSPg

文章截图

简评

Integer有256个写死的对象!它们==肯定是相等的,然而这256个之外的Integer可不==噢。

原创文章,作者:geekgao,如若转载,请注明出处:https://www.geekgao.cn/archives/2392

(0)
geekgaogeekgao博主
上一篇 2020年9月2日
下一篇 2020年9月4日

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

GitHub
分享本页
返回顶部

Warning: error_log(/usr/local/lighthouse/softwares/wordpress/wp-content/plugins/spider-analyser/#log/log-2900.txt): failed to open stream: No such file or directory in /usr/local/lighthouse/softwares/wordpress/wp-content/plugins/spider-analyser/spider.class.php on line 2900