会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Qcer
We are all in the gutter, but some of us are looking at the stars.
博客园
首页
新随笔
联系
订阅
管理
2017年10月15日
关于java的自动拆装箱若干细节问题
摘要: 一、首先需要了解的几个前提 1、自动装箱过程是通过调用valueOf方法实现(如Integer.valueOf(10)),而拆箱过程是通过调用包装器的 xxxValue方法实现(如Integer.intValue(a))。 例如代码: 其自动装箱和拆箱的过程如下: 2、缓存 Integer、Shor
阅读全文
posted @ 2017-10-15 10:51 Qcer
阅读(3143)
评论(1)
推荐(0)
编辑
公告