java8种基础类型的默认值

类型 默认值
byte 0
short 0
int 0
long 0L
float  0.0f
double 0.0d
char '\u0000'
boolean false
posted @ 2017-07-27 17:14  kincolle  阅读(899)  评论(0编辑  收藏  举报