We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java基础知识18.4 原文:成员变量如果没有被赋初值,则会自动以类型的默认值而赋值(一种情况例外被 final 修饰但没有被 static 修饰的成员变量必须显示地赋值);而局部变量则不会自动赋值。 我试了一下 同时被final 和 static修饰的变量也需要被显示地赋值?这里是作者笔误吗?还是我理解的不对?
The text was updated successfully, but these errors were encountered:
已更正!
Sorry, something went wrong.
No branches or pull requests
Java基础知识18.4
原文:成员变量如果没有被赋初值,则会自动以类型的默认值而赋值(一种情况例外被 final 修饰但没有被 static 修饰的成员变量必须显示地赋值);而局部变量则不会自动赋值。
我试了一下 同时被final 和 static修饰的变量也需要被显示地赋值?这里是作者笔误吗?还是我理解的不对?
The text was updated successfully, but these errors were encountered: