Skip to main content
formatting
Source Link
Derrick
  • 4.6k
  • 5
  • 41
  • 54

The default implementation of .equals.equals for the ObjectObject class is as you mentioned.

Other classes can override this behavior. StringBuilder StringBuilder is not one of them.

String is one of them, which overrides it to ensure that the String representations of both objects result in the same sequence of characters. String API

Refer to the documentation for the specific object in question.

The default implementation of .equals for the Object class is as you mentioned.

Other classes can override this behavior. StringBuilder is not one of them.

String is one of them, which overrides it to ensure that the String representations of both objects result in the same sequence of characters. String API

Refer to the documentation for the specific object in question.

The default implementation of .equals for the Object class is as you mentioned.

Other classes can override this behavior. StringBuilder is not one of them.

String is one of them, which overrides it to ensure that the String representations of both objects result in the same sequence of characters. String API

Refer to the documentation for the specific object in question.

Source Link
tschaible
  • 7.7k
  • 1
  • 33
  • 35

The default implementation of .equals for the Object class is as you mentioned.

Other classes can override this behavior. StringBuilder is not one of them.

String is one of them, which overrides it to ensure that the String representations of both objects result in the same sequence of characters. String API

Refer to the documentation for the specific object in question.