2.3 Recursion. The idea of calling one function from another immediately suggests the possibility of a function calling itself. The function-call mechanism in Java supports this possibility, which is known as recursion. The Hello, World for recursion is the factorial function, which is defined for positive integers n by the equation.