51.
What will be the output of the following Java program if input given is "abc'def/'egh"?
class Input_Output
{
    public static void main(String args[]) throws IOException
    {	 
        char c;
        BufferedReader obj = new BufferedReader(new InputStreamReader(System.in));
        do
        {
            c = (char) obj.read();
      System.out.print(c);
        } while(c != '\'');
    }
}

56.
What will be the output of the following Java program?
class output
{
    public static void main(String args[])
    {
        String a="hello i love java";
        System.out.println(indexof('i')+" "+indexof('o')+" "+lastIndexof('i')+" "+lastIndexof('o') ));
    }
}

57.
What will be the output of the following Java program?
class output
{
    public static void main(String args[])
    {
        char c[]={'a','1','b',' ','A','0'];
        for (int i = 0; i < 5; ++i)
        {
      if(Character.isDigit(c[i]))
                System.out.println(c[i]" is a digit");
            if(Character.isWhitespace(c[i]))
               System.out.println(c[i]" is a Whitespace character");
            if(Character.isUpperCase(c[i]))
               System.out.println(c[i]" is an Upper case Letter");
            if(Character.isUpperCase(c[i]))
               System.out.println(c[i]" is a lower case Letter");
            i = i + 3;
        }
    }
}

58.
What will be the output of the following Java program?
class output
{
    public static void main(String args[])
    { 
       StringBuffer s1 = new StringBuffer("Hello");
       StringBuffer s2 = s1.reverse();
       System.out.println(s2);
    }
}

59.
Which of these class contains the methods used to write in a file?