Please read the folowing programming code for a static method for recursion to find factorial of a number in Java. Please see the following visualizations and identify which one is wrong and why.
Visualization1, Visualization2, and Visualization3public class Fac { public static void main(String [ ]args) { System.out.prinln(5+"!=" + factorial(5)); }
public static int factorial(int n) { if return 1; else { int result = n * factorial(n - 1); return result; } } }