Case study: fix a deep-recursion StackOverflowError
45 min · Advanced
Need help? Ask a tutor on WhatsApp (opens in a new tab)Every method call takes a frame on its thread's stack, and the stack has a fixed size, so recursion that goes too deep throws StackOverflowError. The cause is either recursion that never stops or input that is deeper than the stack, and the stack trace plus one run with a bigger -Xss tells you which.
Sign in to continue this lesson
Create an account to read every lesson, practise with the exercises and keep track of your progress.