Hi everyone,
I just finished the task "Stack trace with 10 calls" but I don't understand exactly how it calculates to get the number 10.
I suppose that when it calls method1().length it will return number 12 (because when returning from method 10 will be 1 - getStackTrace(), 2 - method10 ... etc 12 - main().
From the main method, when it calls method10().length - 1, will be 1 - getStackTrace(), 2 - method10, 3 - main.
Is there somebody who can explain me how exactly is calculated please ? :)
Thank you very much!
Stack trace with 10 calls - some explanations
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet