The factorial of a non negative integer n is written n! in JavaThe factorial of a non negative integer n is written n! in Java