Hello!
I'd like to ask you why the equals() method of StringBuffer is inherited directly from the Object class, and hence it just check for reference equality, and not being overriden as is the case with other classes.
For example:
StringBuffer sb1=new StringBuffer("test");
StringBuffer sb2=new StringBuffer("test");
System.out.println(sb1.equals(sb2)); // will print false!
Thank you in advance
With best regards,
Sorin Ciolofan