Compiler Error J0208

Constructor or instance initializer must assign a value to blank final variable 'identifier'

The compiler detected that a final variable was declared but never assigned a value in either an initializer or constructor. In order for a variable to be properly declared final it must be assigned a value.

The following example illustrates this error:

public class Simple{
   final int x; //error: final variables must be assigned a value
   final int z = 10; //This is OK
}