Compiler Error J0239

Static initializer must assign a value to blank final variable 'identifier'

The compiler detected that a static final variable was not initialized to a value using a static or field initializer. In order to declare a variable as static and final you must use a static or field initializer to set an initial value. This error can also occur if a field is declared as static and final and assigned a value in a constructor.

The following example illustrates this error:

public class Simple{
   static final int MAX_CONTROL;
} //error: static final variables must have value assigned