Compiler Error J0046

'identifier' is not an interface name

The compiler detected that the identifier referred to by the keyword implements is not an interface. This error usually occurs when a class is used instead of an interface in an implements statement.

The following example illustrates this error:

class Simple2 {
   
   // do something meaningful
   
}

public class Simple implements Simple2 {
   
   // error: cannot implement class ‘Simple2’
   
}