O'Reilly logo
  • Aadil Hussain thinks this is interesting:

The method equals compares the values stored by wrapper instances. The comparison operator == compares reference variables—checking whether they refer to the same instance.

From

Cover of OCA Java SE 8 Programmer I Certification Guide

Note

important note for comparing and equals