像其他变量一样,我想将最终字段类型变量分配给空白,但初始化被 Java 阻塞。它的逻辑是什么?也许我想使用我的变量的默认值?对于 int = 0,string = null boolean = false 等...
public class Hello {
static final int myNumber; /* it is giving "The blank final field myNumber
may not have been initialized" error in Eclipse */
}