You must understand the concept of inheritance in object oriented languages. A subclass inherits the members of its base class. In the case of StringBuffer (and StringBuilder) you have to be careful because StringBuffer inherits its equals method from Object as well as hashcode. [ October 22, 2005: Message edited by: Barry Gaunt ]