IntegerCache的使用
2016-08-05 14:53
260 查看
Long l1 = new Long(5l); Long l2 = new Long(5l); Integer i1 = Integer.valueOf(1); Integer i2 = Integer.valueOf(1); Integer i3 = Integer.valueOf(128); Integer i4 = Integer.valueOf(128); System.out.println(i3==i4); System.out.println(i1==i2); System.out.println(l1==l2);
输出:
false
true
false
相关文章推荐
- Groovy
- Eclipse中启动tomcat报错java.lang.OutOfMemoryError: PermGen space的解决方法
- 04JavaIO详解_DataInputStream(属于过滤l流)
- UITabBarController和UINavigationController搭配使用
- google protobuf编译安装(ImportError: No module named google.protobuf.internal)
- Hive查询结果输出文件
- 多重部分和问题
- 教你上传本地代码到github
- 网络流(最大流+模板)
- Dmaven.multiModuleProjectDirectory system property is not set
- HDU-1285-确定比赛名次【拓扑排序模板】
- 【MySQL】 join连接使用基本知识
- Ural 1635. Mnemonics and Palindromes
- squid 实验
- Java Web学习(31): Servlet学习(四)
- jquery.qrcode.min.js生成二维码插件
- 又见导弹拦截
- ultraEdit格式化代码
- 字节流与字符流的区别详解
- AngularJS学习之Controller控制器之间的通信