Vidyalelo
Java Programming · Q105

Strings

Programming · Java Programming · question 105

Q105

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
Answer
C.
6
D.
7

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board