Compiler Error J0133

Constructors cannot be declared 'native', 'abstract', 'static', 'synchronized', or 'final'

The compiler detected the use of one of the modifiers shown above in the declaration of a constructor. Ensure that the constructor is not defined with any of the modifiers mentioned in the error message and compile again.

The following example illustrates this error:

public class Simple {
   
   final Simple() {}
   // error: constructors cannot be 'final'
   
}