[Type here] [Type here] [Type here]
Recursion in Java
Recursion in java is a process in which a method calls itself continuously. A method in
java that calls itself is called recursive method.
It makes the code compact but complex to understand.
Syntax:
1. returntype methodname(){
2. //code to be executed
3. methodname();//calling same method
4. }