《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
转发无需备注,如有错误,恳求读者指出,发送到wu13213786609@outlook.com。