What is recursion?
Short Answer
Views 3
Answer:
A method calling itself to solve a problem.
int fact(int n) { if(n == 1) return 1; return n * fact(n - 1); }
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Fundamentals: Building Strong Foundations, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.