Integer和int的区别
来源:互联网 发布:s5230c软件 编辑:程序博客网 时间:2024/05/29 07:46
一,基本的区别
1、Integer是int提供的封装类,而int是Java的基本数据类型
2、Integer默认值是null,而int默认值是0;
3、声明为Integer的变量需要实例化,而声明为int的变量不需要实例化;4、Integer是对象,用一个引用指向这个对象,而int是基本类型,直接存储数值。
其他的区别,请看博客,我觉得他讲的很好:http://www.cnblogs.com/godtrue/p/6413066.html点击打开链接
阅读全文
0 0
- int 和 Integer 的区别
- int 和 Integer 的区别
- int和Integer的区别
- int和Integer的区别
- int 和 integer的区别
- Integer和int的区别
- Integer 和 int 的区别
- int和integer的区别
- int和Integer的区别
- int 和integer的区别
- int 和 Integer的区别
- int 和integer的区别
- int 和integer的区别
- Integer和Int的区别
- int 和integer的区别
- int 和integer的区别
- Int 和integer的区别
- int 和Integer的区别
- 阿里工程师对HBase Bug的分类分析
- 解读一致性hash算法
- 采用httpclient图灵机器人语音对接测试
- mysql服务操作
- 牛客网---2016---去哪儿首个重复字符
- Integer和int的区别
- 安卓之view的事件分发机制
- bootstrap在ie 6 7 8失效问题
- 搭建Maven私服(使用Nexus)
- selenium RC环境配置
- 重拾博客--博客任我行
- leetcode 204. Count Primes
- 被我们忽略的HttpSession线程安全问题
- HDU5935+(思路)+2016年中国大学生程序设计竞赛(杭州)