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