18

Possible Duplicate:
Why does the JVM still not support tail-call optimization?

I see so many different answers online, so I thought I'd ask the experts.

Community
  • 1
  • 1
Donald T
  • 10,234
  • 17
  • 63
  • 91

1 Answers1

40

There is difference between tail recursion and tail recursion optimization. Tail recursion is supported by java because there is nothing special in it, tail recursion optimization is not supported.

Andrey
  • 59,039
  • 12
  • 119
  • 163