Does anybody know why StringBuffer class doesn't override equals() and hashCode() methods?
Author and all-around good cowpoke
posted 12 years ago
Probably because it would make for confused programming. Since the contents could be modified after storing the StringBuffer in a collection, the identity equals is what you want, not a content based one. Bill