A
Q. What will be the output of the following Java code?
class output
{
public static void main(String args[])
{
StringBuffer sb=new StringBuffer("Hello");
sb.replace(1,3,"Java");
System.out.println(sb);
}
}
- Correct Answer - Option(C)
- Views: 17
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.