Advertisements
Advertisements
Question
State any one drawback of using recursive technique in a Java program.
Very Short Answer
Advertisements
Solution
Disadvantages of recursion:
- Recursive functions are typically slower than non-recursive functions.
- Storing intermediate results on system stacks may demand significant memory space.
- The code is difficult to study and understand.
- It does not improve efficiency in space and time complexity.
shaalaa.com
Is there an error in this question or solution?
