What will be the output of the following Java program?

    class output 
    {
        public static void main(String args[])
        { String s = "Hello World";
             int i = s.indexOf('o');
             int j = s.lastIndexOf('l');
             System.out.print(i + " " + j);
 
        }
   }

Posted on by