In Java, or other OOP languages-
class MyClass{ int a=5; MyClass b=new MyClass(); void mymeth() { } }
Here, creating an object of th
You run into a StackOverflowError (ironic, isn't it?) if you try to do that.
It will lead to Stack Overflow Error.