Compiler Error J0196

Nested class 'identifier' cannot have the same name as any of its enclosing classes

The specified inner class has the same name as one of the classes that it is nested under. Ensure that you have not duplicated the name of a class in which your inner class is nested within and compile again.

The following example illustrates this error:

public class Simple{
   
   // Do something meaningful here
   class InnerClass{
      //Do something meaningful here
        class Simple{
            //error: inner class has same name as a parent class
        }
   }
}