public class Test{
public static void main(
String args[])
{
StringBuffer o = new StringBuffer("abcd");
StringBuffer s = new StringBuffer("abcd");
System.out.println(o.equals(s));
}
}
the running result is false,but I thought it should be true, is there any difference between 'equals'method of StringBuffer and that of String?