The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Stack Overflow

Posted by Chet Underwood, Esq. on September 24, 2001 at 2:20 PM

> Can someone tell me how many method calls you have to make to get a StackOverflowError?

Enough to overflow the stack. That could be just one or one billion, or more. Anyway, the issue is not simply calls, but nested (recursive) calls. Read Inside the Java Virtual Machine and you will understand the stack much better.





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us