Discuss / Java / int类型初始化默认值

int类型初始化默认值

Topic source

魇生绮梦

#1 Created at ... [Delete] [Delete and Lock User]

如果int类型的变量不写初值的话,好像println函数无法打印该变量的值。

🌙

#2 Created at ... [Delete] [Delete and Lock User]

局部变量需要,成员变量不需要,有默认值


  • 1

Reply