xiaozi 2015-02-21 22:07:13

Java Integer的缓存, -128 to 127

Integer.valueOf(10) == Integer.valueOf(10); // true
Integer.valueOf(1000) == Integer.valueOf(1000); // false 什么鬼

评论

首页 - Wiki
Copyright © 2011-2024 iteam. Current version is 2.137.1. UTC+08:00, 2024-11-22 05:09
浙ICP备14020137号-1 $访客地图$