Vishnu Khera wrote:why I could not understand? Why the error is recursive, I'm not able to fully understand?
Well, think it through. You're asking the JVM to create a new StackError object, but in order to do that, it needs to create a new StackError object, which in turn needs to create a new StackError object... which is basically an endless loop, so eventually it breaks.
If it's
recursion you're asking about, then the best explanation I can give you is the following quote:
Someone wise and witty once wrote:To understand recursion, you must first understand recursion...
Think about it, because that's basically how it works.
Winston