Java中各种基本数据类型的默认值都是什么?

匿名网友 匿名网友 发布于: 2015-08-30 00:00:00
阅读 158 收藏 0 点赞 0 评论 0

基本类型            默认值
boolean            false
char                   ‘u0000’ (null)
byte                   (byte)0
Short                 (short)0
int                       (int)0
long                    0L
float                    0.0f
double               0.0d

评论列表
文章目录