Q. What will be the output of the following program?
Code:public class Test2 {
public static void main(String[] args) {
StringBuffer s1 = new StringBuffer("Complete");
s1.setCharAt(1,'i');
s1.setCharAt(7,'d');
System.out.println(s1);
}
}
β
Correct Answer: (D)
Cimpletd