《Thinking in Java》---Summary of Chapter 2

Java 基本成员默认值

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

 

 

 

 

 

 

 

 

输出的结果:

 

 会持续更新:

源码查看

www.github.com/WuRoc

 

posted @ 2020-06-03 15:55  小树木  阅读(150)  评论(0编辑  收藏  举报