#include <stdio.h>void main(){y();y();}void y(){static int u = 2;--u;printf("%d", u);}
What will be the output of the following program?public class FinalReverseWithoutUsingStringMethods{public static void main(String[] args){String str = "Automation";StringBuilder str2 = new StringBuilder();str2.append(str);str2 = str2.reverse();reverseSystem.out.println(str2);}}