What is the output of the following?
public class Test2 {  
public static void main(String[] args) {
StringBuffer s1 = new StringBuffer("sookshmas");
s1.setCharAt(1,'i');
s1.setCharAt(8,'d');
System.out.println(s1);
}
}

Posted on by