Compiler Error J0109

Cannot 'new' an instance of abstract class 'identifier'

The compiler detected an attempt to instantiate a class object declared as abstract. A class declared as abstract cannot be instantiated and exists only as a base class for other classes to derive from.

The following example illustrates this error:

abstract class Simple2 {
   // do something meaningful
}

public class Simple {
   
   public void method1() {
   
      Simple2 s2Object = new Simple2(); 
      // error: class ‘Simple2’ declared as abstract
   }
}