What will be the output of the following Java program? [code] class output { public static void main(String args[])

Man Ly

New member
What will be the output of the following Java program?
Code:
    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
 

Tìm kiếm

Back
Top