StringBuffers match?
One of hundreds of answers available with our premium content service.
A: The String class overrides the default implementation of the equals(Object) method to compare the string contents of each object. In this case equivalent string contents are considered equal. The StringBuffer class does not override the superclass Object equals(Object) method, which tests whether the argument refers to the same object reference.
… full answer hidden
Premium members click below for full answer
Why don't two StringBuffers match?