StringBuilder objects will check whether they are pointing to the same object rather than looking at the values inside.
- Chapter 3: Core Java APIs
- from OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808
- Publisher: Sybex
- Released: December 2014
StringBuilder does not override Object's .equals() function, which means the two object references are not the same and the result is false.
Share this highlighthttp://www.safaribooksonline.com/a/oca-oracle-certified/11634823/