O'Reilly logo
  • Satish Kumar thinks this is interesting:

Calling equals() on StringBuilder objects will check whether they are pointing to the same object rather than looking at the values inside.

From

Cover of OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808

Note

StringBuilder does not override Object's .equals() function, which means the two object references are not the same and the result is false.