When I compile and run the program, I get a StackOverflowError.I am not able to understand the reason.
Is it because I have created an instance of the class in the constructor?The program works fine if line 6 and 7 are removed.
The documentation says that
stack overflow occurs because an application recurses too deeply
.
what do you mean by application recurses too deeply?
Can anybody explain this to me.
I am breaking my head over this