I Will Get That Job At Google. | Java limit for recursion
Result for the example (for the current JVM) is about 10 000. It's the max depth for the current JVM with default settings.
Default stack size for the machine is 320 kb, so it means that for this case each recursive call uses 32 extra bytes (for a program counter, method variables etc).
Read full article from I Will Get That Job At Google. | Java limit for recursion
No comments:
Post a Comment