**Factorial Program in Java: **

Factorial of a number means the product of all positive descending integers.

__for example__: If we want to calculate factorial of 5 then it will be written as

5 x 4 x 3 x 2 x 1 = 120 . So 120 is the factorial of 5.