What's the difference between .equals and ==?
.equals
==
They do the exact same thing
== won't work on objects
== cannot be applied to String
String
== is a wrapper of .equals() and checks for nulls Source:
.equals()