除了byte short int long float double char bollean这基础类型外,其余的都是引用类型
成员变量类型 | 初始值 |
byte | 0 |
short | 0 |
int | 0 |
long | 0l |
float | 0.0f |
double | 0.00 |
char | '\u0000'(表示为空) |
boolean | false |
引用类型 | null |
匿名对象:new Person().show()
类的访问机制:
除了byte short int long float double char bollean这基础类型外,其余的都是引用类型
成员变量类型 | 初始值 |
byte | 0 |
short | 0 |
int | 0 |
long | 0l |
float | 0.0f |
double | 0.00 |
char | '\u0000'(表示为空) |
boolean | false |
引用类型 | null |
匿名对象:new Person().show()
类的访问机制: