Examveda
Examveda

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

A. 4

B. 5

C. 6

D. 7

Answer: Option B


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings