What is the output of the following code?
public class FinalReverseWithoutUsingInbuiltFunction
{
  public static viod main(String [ ] args)
   {
     String str = "Saket Saurav";
     char chars [ ] = str.toCharArray();
      for(int i = char.length-1; i>=0; i--)
      {
        system.out.print(chars[i]);
      }
    }
 }

Posted on by