Sollicitatievraag bij Expeditors

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

Antwoord op sollicitatievraag

Anoniem

31 aug 2015

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