If you and I each walk into the bank, each open a brand new account, and each deposit $100, then...
myAccount.equals(yourAccount)
is true
because they have the same value, but
myAccount == yourAccount
is false
because they are not the same account.
(Assuming appropriate definitions of the Account
class, of course. ;-)