SCJP 基本问题
有一本材料上是这么说的
Final variables can be initialized only once within Java code. If the code attempts to reinitialize a final variable with another value, the compiler will complain. The following code is legal, even though the final variable is not initialized within the same line on which it is declared:
public final int users; // Does not initialize a final variable
但是我编译不通过
Test.java:3:variable users might not have been initialized
为什么 final 变量必须初始化?
public final int users;