首页 > 其他 > 详细

包装类型

时间:2017-01-03 08:11:28      阅读:200      评论:0      收藏:0      [点我收藏+]

 

包装类型除了double 、float他们的范围在127与-128之间都可以在常量池中取值

Integer a=12;

Integer b=12;

System.out.println(a==b) true;

int a=128;

int b=128;

System.out.println(a==b) false;

 

Boolean b=true;

Boolean c=true;

System.out.println(b==c) true

 

包装类型

原文:http://www.cnblogs.com/javaweb2/p/6243669.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!