What makes it possible to create a instance of class inside of the class itself?
public class My_Class { My_Class new_class= new My_Class(); }
The attribute to hold self instance should be static
public class MyClass { private static MyClass instance; static { instance = new MyClass(); } // some methods }