A
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());
}
}
{
public static void main(String args[])
{
StringBuffer c = new StringBuffer("Hello");
System.out.println(c.length());
}
}
- Correct Answer - Option(B)
- Views: 23
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.