Compiler Error J0116

Variable 'identifier' may be used before initialization

The compiler detected an attempt to use a variable before it was properly initialized. In order to use a variable in an assignment or expression, you need to assign it a value. Initialize the variable in a constructor or field initializer and compile again.

The following example illustrates this error:

public class Simple {
   
   static 
   {
      int i;
      int j = i;
      // error: 'i' not yet initialized
   
   }
}