recursion and memory

前端 未结 5 1078
生来不讨喜
生来不讨喜 2020-12-30 11:19

I have a program that passes in huge amounts of data, say 1000 variables, through recursion. The recursion would run to atleast 50 or 60 times. What I\'m worried about is, i

5条回答
  •  春和景丽
    2020-12-30 12:01

    There's no chance of getting wrong results: in case of a stackoverflow your program will terminate prematurely with a StackOverflowError.

    The memory locations where you store the data cannot be overwritten by anything else.

提交回复
热议问题