Recursion in Java.

Recursion is a process by which a function or a method calls itself again and again is called the recursive function.

Code :