Generally you get this if a function directly or indirectly calls itself, forever; eventually the JVM runs out of space on the "program stack" to hold the return addresses for all those function calls; this is called a "stack overflow."
hi again...hope isnt stupid question..but how do i exactly stop StackOverflowexception in main happening ?...thanks
Tony Morris
Ranch Hand
Joined: Sep 24, 2003
Posts: 1608
posted
0
It (almost always) means you have made a recursive call (directly or indirectly) that has no base case - and so never ends (until the stack overflows of course).