会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
努力赚钱见爱豆
博客园
首页
新随笔
联系
订阅
管理
2020年5月28日
为何将未被初始化的Integer变量赋值给int变量时会抛出空指针异常?
摘要: Integer的NullPointerException 学习包装类的时候看到这样一个问题: public class TestBox { Integer i; int j; public void go(){ j = i;//第七行 System.out.println(j); System.ou
阅读全文
posted @ 2020-05-28 22:16 努力赚钱见爱豆
阅读(592)
评论(0)
推荐(0)
公告