Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • That's exactly the kind of answer I was looking for! However, before accepting I'll wait to see if others can provide some info on other programming languages. Or maybe you can? Commented Oct 8, 2014 at 0:17
  • 2
    Some languages will have optimizations to reduce the stack usage for recursive method calls. You won't find a language that consumes much more stack than Java for each method call, since this is almost universal behavior. Stack size and reference size will also vary. For instance, if you've got a 32 bit operating system, some languages, like C (but not Java, since it uses a virtual machine) will have 32 bit (4 byte) references. In this case you'd be able to store more references on the same amount of stack space. There is no guarantee in any case what the exact stack space will be. Commented Oct 8, 2014 at 0:25