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();
           reverse
         System.out.println(str2);
          }
 
}

Posted on by