Examveda
Examveda

What will be the output of the following Java program?
class output 
{
    public static void main(String args[])
    { 
         StringBuffer c = new StringBuffer("Hello");
         c.delete(0,2);
         System.out.println(c);
    }
}

A. He

B. Hel

C. lo

D. llo

Answer: Option D


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings