会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
在路上
博客园
首页
新随笔
联系
订阅
管理
2016年5月3日
Java学习_int和Integer的区别+包装类
摘要: 1.Java 中的数据类型分为基本数据类型和引用数据类型 int是基本数据类型,Integer是引用数据类型; Ingeter是int的包装类,int的初值为0,Ingeter的初值为null。 2.初始化 int i =1; Integer i= new Integer(1); 有了自动装箱和拆箱
阅读全文
posted @ 2016-05-03 10:54 王者级青铜
阅读(1217)
评论(2)
推荐(3)
编辑
公告