Question d’entretien chez Expeditors

What is the difference between comparing a string variable with "==" and .equals()?

Réponse à la question d'entretien

Utilisateur anonyme

31 août 2015

== checks for the exact string reference .equals() checks for the equivalency of the 2 strings.