Compiler Error J0021

Expected type specifier

The compiler expected to find a type specifier in the position indicated by the error message. This error usually occurs when a typographical error exists in an object instantiation or variable declaration.

The following example illustrates this error:

public class Simple {
   
   public Object o =new; //error: missing 'Object' type specifier
}